#include "llvm/SymbolTable.h"
#include "llvm/Support/HashExtras.h"
#include <hash_map>
-#include <vector>
#include <strstream.h>
#undef USE_PTRREF
#ifdef USE_PTRREF
-inline ConstPoolPointerReference*
+static inline ConstPoolPointerReference*
GetStringRef(Module* module, const char* str)
{
static hash_map<string, ConstPoolPointerReference*> stringRefCache;
}
#endif USE_PTRREF
-inline GlobalVariable*
+static inline GlobalVariable*
GetStringRef(Module* module, const char* str)
{
static hash_map<string, GlobalVariable*> stringRefCache;
}
-inline bool
+static inline bool
TraceThisOpCode(unsigned opCode)
{
// Explicitly test for opCodes *not* to trace so that any new opcodes will
}
}
-void
+static void
InsertCodeToShowMethodEntry(BasicBlock* entryBB)
{
}
-void
+static void
InsertCodeToShowMethodExit(BasicBlock* exitBB)
{
}
if (traceMethodExits)
{
InsertCodeToShowMethodEntry(method->getEntryNode());
+#ifdef TODO_LATER
exitBB = method->getExitNode();
+#endif
}
for (Method::iterator BI = method->begin(); BI != method->end(); ++BI)