Add back r201608, r201622, r201624 and r201625
[oota-llvm.git] / lib / ExecutionEngine / MCJIT / MCJIT.cpp
index 4eaeb7a1d5c0aedabcecd5559c5ebc279640ae07..4d5723a7a1369022c049f9e638d07b37caf326f6 100644 (file)
@@ -27,6 +27,7 @@
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/MutexGuard.h"
+#include "llvm/Target/TargetLowering.h"
 
 using namespace llvm;
 
@@ -371,7 +372,7 @@ void *MCJIT::getPointerToFunction(Function *F) {
   // load address of the symbol, not the local address.
   Mangler Mang(TM->getDataLayout());
   SmallString<128> Name;
-  Mang.getNameWithPrefix(Name, F);
+  TM->getTargetLowering()->getNameWithPrefix(Name, F, Mang);
   return (void*)Dyld.getSymbolLoadAddress(Name);
 }