Fill in the missing function. Qualify Triple with Compiler.
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.