mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 07:59:33 +00:00
IncludeFile hack to pull in BasicAliasAnalysis whenever AliasAnalysis.h
is included. llvm-svn: 10396
This commit is contained in:
parent
e4217e90ac
commit
045d32a78d
@ -31,6 +31,7 @@
|
||||
#define LLVM_ANALYSIS_ALIAS_ANALYSIS_H
|
||||
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "llvm/Pass.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -159,6 +160,14 @@ public:
|
||||
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
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user