diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-06-07 22:00:26 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-06-07 22:00:26 +0000 |
| commit | be535661cc81e5c4be116a9f342af9b061c4ea9e (patch) | |
| tree | cc8cb97e9b8ea6a2bb5c9e49fabbedaac25bcefc /llvm/lib/Analysis/LoopInfo.cpp | |
| parent | d4b795902c52cdbc9087b7c8a18fa8ec93acb2e9 (diff) | |
| download | bcm5719-llvm-be535661cc81e5c4be116a9f342af9b061c4ea9e.tar.gz bcm5719-llvm-be535661cc81e5c4be116a9f342af9b061c4ea9e.zip | |
For PR780:
1. Fix the macros in IncludeFile.h to put everything in the llvm namespace
2. Replace the previous explicit mechanism in all the .h and .cpp files
with the macros in IncludeFile.h
This gets us a consistent mechanism throughout LLVM for ensuring linkage.
Next step is to make sure its used in enough places.
llvm-svn: 28715
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoopInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp index f2ef17682fc..c7ce58ef915 100644 --- a/llvm/lib/Analysis/LoopInfo.cpp +++ b/llvm/lib/Analysis/LoopInfo.cpp @@ -86,8 +86,6 @@ void Loop::dump() const { //===----------------------------------------------------------------------===// // LoopInfo implementation // -int LoopInfo::stub; - bool LoopInfo::runOnFunction(Function &) { releaseMemory(); Calculate(getAnalysis<ETForest>()); // Update @@ -557,3 +555,6 @@ Loop *Loop::removeChildLoop(iterator I) { void Loop::removeBlockFromLoop(BasicBlock *BB) { RemoveFromVector(Blocks, BB); } + +// Ensure this file gets linked when LoopInfo.h is used. +DEFINING_FILE_FOR(LoopInfo) |

