LEVEL = ../..
TOOLNAME = gccas
-USEDLIBS = asmparser bcwriter analysis transforms opt vmcore asmwriter support
+USEDLIBS = asmparser bcwriter analysis transforms opt vmcore asmwriter support target
include $(LEVEL)/Makefile.common
#include "llvm/Module.h"
#include "llvm/Assembly/Parser.h"
#include "llvm/Transforms/CleanupGCCOutput.h"
-#include "llvm/Optimizations/LevelChange.h"
+#include "llvm/Transforms/LevelChange.h"
#include "llvm/Optimizations/ConstantProp.h"
#include "llvm/Optimizations/DCE.h"
#include "llvm/Transforms/ConstantMerge.h"
//
vector<Pass*> Passes;
Passes.push_back(new CleanupGCCOutput()); // Fix gccisms
- Passes.push_back(new opt::RaiseRepresentation());// Fix general low level code
+ Passes.push_back(new RaisePointerReferences()); // Fix general low level code
Passes.push_back(new opt::ConstantPropogation());// Trivial const prop
Passes.push_back(new opt::DeadCodeElimination());// Trivial DCE
Passes.push_back(new ConstantMerge()); // Merge dup global constants
LEVEL = ../..
TOOLNAME = opt
-USEDLIBS = opt bcreader bcwriter asmwriter analysis vmcore support instrument transforms
+USEDLIBS = opt bcreader bcwriter asmwriter analysis vmcore support instrument transforms target
include $(LEVEL)/Makefile.common
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Transforms/ConstantMerge.h"
#include "llvm/Transforms/CleanupGCCOutput.h"
+#include "llvm/Transforms/LevelChange.h"
#include <fstream>
using namespace opt;
{ indvars , new opt::InductionVariableCannonicalize() },
{ sccp , new opt::SCCPPass() },
{ adce , new opt::AgressiveDCE() },
- { raise , new opt::RaiseRepresentation() },
+ { raise , new RaisePointerReferences() },
{ trace , new InsertTraceCode(true, true) },
{ tracem , new InsertTraceCode(false, true) },
{ print , new PrintModulePass("Current Method: \n",&cerr) },