Fill in the missing function. Qualify Triple with Compiler.
diff --git a/bcc_code_emitter.cpp b/bcc_code_emitter.cpp
index e8bbde0..9021990 100644
--- a/bcc_code_emitter.cpp
+++ b/bcc_code_emitter.cpp
@@ -1161,7 +1161,7 @@
<< "\n";
if (mpAsmInfo == NULL)
- mpAsmInfo = mpTarget->createAsmInfo(Triple);
+ mpAsmInfo = mpTarget->createAsmInfo(Compiler::Triple);
if (mpDisassmbler == NULL)
mpDisassmbler = mpTarget->createMCDisassembler();
if (mpIP == NULL)
diff --git a/bcc_code_emitter.h b/bcc_code_emitter.h
index 3b20b6c..774b82d 100644
--- a/bcc_code_emitter.h
+++ b/bcc_code_emitter.h
@@ -129,7 +129,11 @@
// Tell the execution engine that the specified global is at the specified
// location. This is used internally as functions are JIT'd and as global
// variables are laid out in memory.
- void AddGlobalMapping(const llvm::GlobalValue *GV, void *Addr);
+ void AddGlobalMapping(const llvm::GlobalValue *GV, void *Addr) {
+ void *&CurVal = mGlobalAddressMap[GV];
+ assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!");
+ CurVal = Addr;
+ }
// This returns the address of the specified global value if it is has
// already been codegen'd, otherwise it returns null.