Skip to content
Snippets Groups Projects
Commit e87291ef authored by Anand Shukla's avatar Anand Shukla
Browse files

Changed so it gets linked properly

llvm-svn: 3508
parent b3a296fc
No related branches found
No related tags found
No related merge requests found
...@@ -110,9 +110,15 @@ public: ...@@ -110,9 +110,15 @@ public:
// //
virtual void getAnalysisUsage(AnalysisUsage &AU) const; virtual void getAnalysisUsage(AnalysisUsage &AU) const;
static void stub(); // Noop
private: private:
void Calculate(const DominatorSet &DS); void Calculate(const DominatorSet &DS);
Loop *ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS); Loop *ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS);
}; };
// Make sure that any clients of this file link in PostDominators.cpp
static IncludeFile
LOOP_INFO_INCLUDE_FILE((void*)&LoopInfo::stub);
#endif #endif
...@@ -40,6 +40,7 @@ void Loop::print(std::ostream &OS) const { ...@@ -40,6 +40,7 @@ void Loop::print(std::ostream &OS) const {
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// LoopInfo implementation // LoopInfo implementation
// //
void LoopInfo::stub() {}
bool LoopInfo::runOnFunction(Function &) { bool LoopInfo::runOnFunction(Function &) {
releaseMemory(); releaseMemory();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment