diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-23 14:19:52 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-23 14:19:52 +0000 | 
| commit | 4a142eb28942073eb27a112b5ca1cca3f01beb9c (patch) | |
| tree | 22cc59e4b240d84c3a5a60531119c4eca914a256 /lib/Target/CBackend/CBackend.cpp | |
| parent | 5cd822fa9bbb9622241e3bf4d7674ed49ccde5b9 (diff) | |
Notes
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
| -rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 7 | 
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index fe63edf3ff68c..cbf769bf0150b 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -302,7 +302,6 @@ namespace {      void visitInlineAsm(CallInst &I);      bool visitBuiltinCall(CallInst &I, Intrinsic::ID ID, bool &WroteCallee); -    void visitMallocInst(MallocInst &I);      void visitAllocaInst(AllocaInst &I);      void visitFreeInst  (FreeInst   &I);      void visitLoadInst  (LoadInst   &I); @@ -3405,10 +3404,6 @@ void CWriter::visitInlineAsm(CallInst &CI) {    Out << ")";  } -void CWriter::visitMallocInst(MallocInst &I) { -  llvm_unreachable("lowerallocations pass didn't work!"); -} -  void CWriter::visitAllocaInst(AllocaInst &I) {    Out << '(';    printType(Out, I.getType()); @@ -3690,7 +3685,7 @@ bool CTargetMachine::addPassesToEmitWholeFile(PassManager &PM,    if (FileType != TargetMachine::AssemblyFile) return true;    PM.add(createGCLoweringPass()); -  PM.add(createLowerAllocationsPass(true)); +  PM.add(createLowerAllocationsPass());    PM.add(createLowerInvokePass());    PM.add(createCFGSimplificationPass());   // clean up after lower invoke.    PM.add(new CBackendNameAllUsedStructsAndMergeFunctions());  | 
