[llvm-commits] [dragonegg] r133392 - /dragonegg/trunk/src/Constants.cpp
Duncan Sands
baldrick at free.fr
Sun Jun 19 05:36:45 PDT 2011
Author: baldrick
Date: Sun Jun 19 07:36:45 2011
New Revision: 133392
URL: http://llvm.org/viewvc/llvm-project?rev=133392&view=rev
Log:
Restore support for INDIRECT_REF: only MISALIGNED_INDIRECT_REF was
removed in gcc-4.6.
Modified:
dragonegg/trunk/src/Constants.cpp
Modified: dragonegg/trunk/src/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Constants.cpp?rev=133392&r1=133391&r2=133392&view=diff
==============================================================================
--- dragonegg/trunk/src/Constants.cpp (original)
+++ dragonegg/trunk/src/Constants.cpp Sun Jun 19 07:36:45 2011
@@ -1463,13 +1463,11 @@
return cast<GlobalValue>(DEFINITION_LLVM(exp));
}
-#if (GCC_MINOR < 6)
/// AddressOfINDIRECT_REF - Return the address of a dereference.
static Constant *AddressOfINDIRECT_REF(tree exp, TargetFolder &Folder) {
// The address is just the dereferenced operand. Get it as an LLVM constant.
return getAsRegister(TREE_OPERAND(exp, 0), Folder);
}
-#endif
/// AddressOfLABEL_DECL - Return the address of a label.
static Constant *AddressOfLABEL_DECL(tree exp, TargetFolder &) {
@@ -1522,9 +1520,9 @@
case INDIRECT_REF:
#if (GCC_MINOR < 6)
case MISALIGNED_INDIRECT_REF:
+#endif
Addr = AddressOfINDIRECT_REF(exp, Folder);
break;
-#endif
case LABEL_DECL:
Addr = AddressOfLABEL_DECL(exp, Folder);
break;
More information about the llvm-commits
mailing list