[dragonegg] r208729 - Fix build after a llvm API change.
Rafael Espindola
rafael.espindola at gmail.com
Tue May 13 14:07:34 PDT 2014
Author: rafael
Date: Tue May 13 16:07:34 2014
New Revision: 208729
URL: http://llvm.org/viewvc/llvm-project?rev=208729&view=rev
Log:
Fix build after a llvm API change.
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=208729&r1=208728&r2=208729&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Tue May 13 16:07:34 2014
@@ -1921,7 +1921,7 @@ static void llvm_finish_unit(void */*gcc
ArrayType *AT = ArrayType::get(SBP, AUGs.size());
Constant *Init = ConstantArray::get(AT, AUGs);
- GlobalValue *gv =
+ auto *gv =
new GlobalVariable(*TheModule, AT, false, GlobalValue::AppendingLinkage,
Init, "llvm.used");
gv->setSection("llvm.metadata");
@@ -1941,7 +1941,7 @@ static void llvm_finish_unit(void */*gcc
ArrayType *AT = ArrayType::get(SBP, ACUGs.size());
Constant *Init = ConstantArray::get(AT, ACUGs);
- GlobalValue *gv =
+ auto *gv =
new GlobalVariable(*TheModule, AT, false, GlobalValue::AppendingLinkage,
Init, "llvm.compiler.used");
gv->setSection("llvm.metadata");
@@ -1954,9 +1954,9 @@ static void llvm_finish_unit(void */*gcc
ArrayType::get(AttributeAnnotateGlobals[0]->getType(),
AttributeAnnotateGlobals.size()),
AttributeAnnotateGlobals);
- GlobalValue *gv = new GlobalVariable(*TheModule, Array->getType(), false,
- GlobalValue::AppendingLinkage, Array,
- "llvm.global.annotations");
+ auto *gv = new GlobalVariable(*TheModule, Array->getType(), false,
+ GlobalValue::AppendingLinkage, Array,
+ "llvm.global.annotations");
gv->setSection("llvm.metadata");
AttributeAnnotateGlobals.clear();
}
More information about the llvm-commits
mailing list