[llvm-commits] CVS: llvm/include/llvm/Analysis/AliasAnalysis.h

Brian Gaeke gaeke at cs.uiuc.edu
Wed Dec 10 23:06:01 PST 2003


Changes in directory llvm/include/llvm/Analysis:

AliasAnalysis.h updated: 1.7 -> 1.8

---
Log message:

IncludeFile hack to pull in BasicAliasAnalysis whenever AliasAnalysis.h
is included.


---
Diffs of the changes:  (+9 -0)

Index: llvm/include/llvm/Analysis/AliasAnalysis.h
diff -u llvm/include/llvm/Analysis/AliasAnalysis.h:1.7 llvm/include/llvm/Analysis/AliasAnalysis.h:1.8
--- llvm/include/llvm/Analysis/AliasAnalysis.h:1.7	Tue Nov 11 16:41:30 2003
+++ llvm/include/llvm/Analysis/AliasAnalysis.h	Wed Dec 10 23:05:02 2003
@@ -31,6 +31,7 @@
 #define LLVM_ANALYSIS_ALIAS_ANALYSIS_H
 
 #include "llvm/Support/CallSite.h"
+#include "llvm/Pass.h"
 
 namespace llvm {
 
@@ -158,6 +159,14 @@
   bool canInstructionRangeModify(const Instruction &I1, const Instruction &I2,
                                  const Value *Ptr, unsigned Size);
 };
+
+// Because of the way .a files work, we must force the BasicAA implementation to
+// be pulled in if the AliasAnalysis header is included.  Otherwise we run
+// the risk of AliasAnalysis being used, but the default implementation not
+// being linked into the tool that uses it.
+//
+extern void BasicAAStub();
+static IncludeFile HDR_INCLUDE_BASICAA_CPP((void*)&BasicAAStub);
 
 } // End llvm namespace
 





More information about the llvm-commits mailing list