[dragonegg] r203878 - Fix for LLVM API change.
Rafael Espindola
rafael.espindola at gmail.com
Thu Mar 13 18:18:45 PDT 2014
Author: rafael
Date: Thu Mar 13 20:18:44 2014
New Revision: 203878
URL: http://llvm.org/viewvc/llvm-project?rev=203878&view=rev
Log:
Fix for LLVM API change.
Modified:
dragonegg/trunk/src/Backend.cpp
dragonegg/trunk/src/ConstantConversion.cpp
dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=203878&r1=203877&r2=203878&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Thu Mar 13 20:18:44 2014
@@ -1090,8 +1090,6 @@ static void emit_global(tree decl) {
if (false) { // FIXME DECL_LLVM_PRIVATE(decl)) {
Linkage = GlobalValue::PrivateLinkage;
- } else if (false) { //FIXME DECL_LLVM_LINKER_PRIVATE(decl)) {
- Linkage = GlobalValue::LinkerPrivateLinkage;
} else if (!TREE_PUBLIC(decl)) {
Linkage = GlobalValue::InternalLinkage;
} else if (DECL_WEAK(decl)) {
Modified: dragonegg/trunk/src/ConstantConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/ConstantConversion.cpp?rev=203878&r1=203877&r2=203878&view=diff
==============================================================================
--- dragonegg/trunk/src/ConstantConversion.cpp (original)
+++ dragonegg/trunk/src/ConstantConversion.cpp Thu Mar 13 20:18:44 2014
@@ -1494,7 +1494,7 @@ static Constant *AddressOfSimpleConstant
// Create a new global variable.
Slot = new GlobalVariable(*TheModule, Init->getType(), true,
- GlobalVariable::LinkerPrivateLinkage, Init, ".cst");
+ GlobalVariable::PrivateLinkage, Init, ".cst");
unsigned align = TYPE_ALIGN(main_type(exp));
#ifdef CONSTANT_ALIGNMENT
align = CONSTANT_ALIGNMENT(exp, align);
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=203878&r1=203877&r2=203878&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Thu Mar 13 20:18:44 2014
@@ -968,8 +968,6 @@ void TreeToLLVM::StartFunctionBody() {
// Compute the linkage that the function should get.
if (false) { //FIXME DECL_LLVM_PRIVATE(FnDecl)) {
Fn->setLinkage(Function::PrivateLinkage);
- } else if (false) { //FIXME DECL_LLVM_LINKER_PRIVATE(FnDecl)) {
- Fn->setLinkage(Function::LinkerPrivateLinkage);
} else if (!TREE_PUBLIC(FnDecl) /*|| lang_hooks.llvm_is_in_anon(subr)*/) {
Fn->setLinkage(Function::InternalLinkage);
} else if (DECL_COMDAT(FnDecl)) {
More information about the llvm-commits
mailing list