Fix build with LLVM 3.0
This commit is contained in:
@@ -227,8 +227,10 @@ namespace {
|
|||||||
const llvm::TargetData* TD;
|
const llvm::TargetData* TD;
|
||||||
|
|
||||||
std::map<const llvm::ConstantFP *, unsigned> FPConstantMap;
|
std::map<const llvm::ConstantFP *, unsigned> FPConstantMap;
|
||||||
|
#ifndef LLVM_3_0
|
||||||
std::map<const llvm::ConstantDataVector *, unsigned> VectorConstantMap;
|
std::map<const llvm::ConstantDataVector *, unsigned> VectorConstantMap;
|
||||||
unsigned VectorConstantIndex;
|
unsigned VectorConstantIndex;
|
||||||
|
#endif // !LLVM_3_0
|
||||||
std::set<llvm::Function*> intrinsicPrototypesAlreadyGenerated;
|
std::set<llvm::Function*> intrinsicPrototypesAlreadyGenerated;
|
||||||
std::set<const llvm::Argument*> ByValParams;
|
std::set<const llvm::Argument*> ByValParams;
|
||||||
unsigned FPCounter;
|
unsigned FPCounter;
|
||||||
@@ -255,7 +257,9 @@ namespace {
|
|||||||
vectorWidth(vecwidth) {
|
vectorWidth(vecwidth) {
|
||||||
initializeLoopInfoPass(*llvm::PassRegistry::getPassRegistry());
|
initializeLoopInfoPass(*llvm::PassRegistry::getPassRegistry());
|
||||||
FPCounter = 0;
|
FPCounter = 0;
|
||||||
|
#ifndef LLVM_3_0
|
||||||
VectorConstantIndex = 0;
|
VectorConstantIndex = 0;
|
||||||
|
#endif // !LLVM_3_0
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const char *getPassName() const { return "C backend"; }
|
virtual const char *getPassName() const { return "C backend"; }
|
||||||
@@ -299,7 +303,9 @@ namespace {
|
|||||||
delete MRI;
|
delete MRI;
|
||||||
delete MOFI;
|
delete MOFI;
|
||||||
FPConstantMap.clear();
|
FPConstantMap.clear();
|
||||||
|
#ifndef LLVM_3_0
|
||||||
VectorConstantMap.clear();
|
VectorConstantMap.clear();
|
||||||
|
#endif // !LLVM_3_0
|
||||||
ByValParams.clear();
|
ByValParams.clear();
|
||||||
intrinsicPrototypesAlreadyGenerated.clear();
|
intrinsicPrototypesAlreadyGenerated.clear();
|
||||||
UnnamedStructIDs.clear();
|
UnnamedStructIDs.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user