diff --git a/cbackend.cpp b/cbackend.cpp index 1c237548..1acd24b4 100644 --- a/cbackend.cpp +++ b/cbackend.cpp @@ -227,8 +227,10 @@ namespace { const llvm::TargetData* TD; std::map FPConstantMap; +#ifndef LLVM_3_0 std::map VectorConstantMap; unsigned VectorConstantIndex; +#endif // !LLVM_3_0 std::set intrinsicPrototypesAlreadyGenerated; std::set ByValParams; unsigned FPCounter; @@ -255,7 +257,9 @@ namespace { vectorWidth(vecwidth) { initializeLoopInfoPass(*llvm::PassRegistry::getPassRegistry()); FPCounter = 0; +#ifndef LLVM_3_0 VectorConstantIndex = 0; +#endif // !LLVM_3_0 } virtual const char *getPassName() const { return "C backend"; } @@ -299,7 +303,9 @@ namespace { delete MRI; delete MOFI; FPConstantMap.clear(); +#ifndef LLVM_3_0 VectorConstantMap.clear(); +#endif // !LLVM_3_0 ByValParams.clear(); intrinsicPrototypesAlreadyGenerated.clear(); UnnamedStructIDs.clear();