aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/TraceValues.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-15 13:07:21 +0000
committerChris Lattner <sabre@nondot.org>2001-10-15 13:07:21 +0000
commitf84b9bc33b931e3fca3ad7d4c5c94e153c974273 (patch)
tree1ce565c035e79b1b7844e42678bb9dc240f04df3 /lib/Transforms/Instrumentation/TraceValues.cpp
parent54287145e7638fb5537969fc3b6338da35104985 (diff)
* getExitNode() doesn't exist in method anymore
* Make local functions static git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/TraceValues.cpp')
-rw-r--r--lib/Transforms/Instrumentation/TraceValues.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp
index 0c14e60ce3..0cd395b404 100644
--- a/lib/Transforms/Instrumentation/TraceValues.cpp
+++ b/lib/Transforms/Instrumentation/TraceValues.cpp
@@ -27,7 +27,6 @@
#include "llvm/SymbolTable.h"
#include "llvm/Support/HashExtras.h"
#include <hash_map>
-#include <vector>
#include <strstream.h>
@@ -42,7 +41,7 @@ const char* const PRINTF = "printf";
#undef USE_PTRREF
#ifdef USE_PTRREF
-inline ConstPoolPointerReference*
+static inline ConstPoolPointerReference*
GetStringRef(Module* module, const char* str)
{
static hash_map<string, ConstPoolPointerReference*> stringRefCache;
@@ -70,7 +69,7 @@ GetStringRef(Module* module, const char* str)
}
#endif USE_PTRREF
-inline GlobalVariable*
+static inline GlobalVariable*
GetStringRef(Module* module, const char* str)
{
static hash_map<string, GlobalVariable*> stringRefCache;
@@ -99,7 +98,7 @@ GetStringRef(Module* module, const char* str)
}
-inline bool
+static inline bool
TraceThisOpCode(unsigned opCode)
{
// Explicitly test for opCodes *not* to trace so that any new opcodes will
@@ -161,12 +160,12 @@ TraceValuesAtBBExit(const vector<Value*>& valueVec,
}
}
-void
+static void
InsertCodeToShowMethodEntry(BasicBlock* entryBB)
{
}
-void
+static void
InsertCodeToShowMethodExit(BasicBlock* exitBB)
{
}
@@ -346,7 +345,9 @@ InsertCodeToTraceValues(Method* method,
if (traceMethodExits)
{
InsertCodeToShowMethodEntry(method->getEntryNode());
+#ifdef TODO_LATER
exitBB = method->getExitNode();
+#endif
}
for (Method::iterator BI = method->begin(); BI != method->end(); ++BI)