summaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/Makefile2
-rw-r--r--tools/opt/opt.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/opt/Makefile b/tools/opt/Makefile
index a01097ff55..4a14d372e5 100644
--- a/tools/opt/Makefile
+++ b/tools/opt/Makefile
@@ -5,6 +5,6 @@ all:: opt
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 f039a8a002..70c2efeff8 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -42,6 +42,7 @@ struct {
{ "-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) {