Add support to call LevelRaise
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/opt/Makefile b/tools/opt/Makefile
index a01097f..4a14d37 100644
--- a/tools/opt/Makefile
+++ b/tools/opt/Makefile
@@ -5,6 +5,6 @@
clean ::
rm -f opt
-opt : $(ObjectsG)
+opt : $(ObjectsG) ../../lib/Optimizations/Debug/libopt.a
$(LinkG) -o $@ $(ObjectsG) -lopt -lbcreader -lbcwriter \
-lasmwriter -lanalysis -lvmcore
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index f039a8a..70c2efe 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -42,6 +42,7 @@
{ "-sccp" , "Sparse Conditional Constant Prop", DoSCCP },
{ "-cpm" , "Constant Pool Merging", DoConstantPoolMerging },
{ "-adce" , "Agressive DCE", DoADCE },
+ { "-raise" , "Raise to Higher Level", DoRaiseRepresentation },
};
int main(int argc, char **argv) {