summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ProfileInfoLoader.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-04 17:11:14 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-04 17:11:14 +0000
commit600f2045a92b4593c4c621f70721e1829380168e (patch)
tree1e39d9119f1b56246742cb21a13995032a18eb08 /llvm/lib/Analysis/ProfileInfoLoader.cpp
parent9a1b8c73a8ac85b79273adcf224f2ccd57e99fd8 (diff)
downloadbcm5719-llvm-600f2045a92b4593c4c621f70721e1829380168e.tar.gz
bcm5719-llvm-600f2045a92b4593c4c621f70721e1829380168e.zip
Add stub support for reading BBTraces.
llvm-svn: 13352
Diffstat (limited to 'llvm/lib/Analysis/ProfileInfoLoader.cpp')
-rw-r--r--llvm/lib/Analysis/ProfileInfoLoader.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ProfileInfoLoader.cpp b/llvm/lib/Analysis/ProfileInfoLoader.cpp
index 96c3e2c5d68..46a888365d4 100644
--- a/llvm/lib/Analysis/ProfileInfoLoader.cpp
+++ b/llvm/lib/Analysis/ProfileInfoLoader.cpp
@@ -123,6 +123,10 @@ ProfileInfoLoader::ProfileInfoLoader(const char *ToolName,
ReadProfilingBlock(ToolName, F, ShouldByteSwap, EdgeCounts);
break;
+ case BBTraceInfo:
+ ReadProfilingBlock(ToolName, F, ShouldByteSwap, BBTrace);
+ break;
+
default:
std::cerr << ToolName << ": Unknown packet type #" << PacketType << "!\n";
exit(1);
@@ -257,3 +261,15 @@ void ProfileInfoLoader::getEdgeCounts(std::vector<std::pair<Edge,
return;
}
}
+
+// getBBTrace - This method is used by consumers of basic-block trace
+// information.
+//
+void ProfileInfoLoader::getBBTrace(std::vector<BasicBlock *> &Trace) {
+ if (BBTrace.empty ()) {
+ std::cerr << "Basic block trace is not available!\n";
+ return;
+ }
+ std::cerr << "Basic block trace loading is not implemented yet!\n";
+}
+
OpenPOWER on IntegriCloud