[dragonegg] r182262 - Use accessor macros to get at BINFO so this code compiles with all gcc versions.
Duncan Sands
baldrick at free.fr
Mon May 20 06:40:22 PDT 2013
Author: baldrick
Date: Mon May 20 08:40:22 2013
New Revision: 182262
URL: http://llvm.org/viewvc/llvm-project?rev=182262&view=rev
Log:
Use accessor macros to get at BINFO so this code compiles with all gcc versions.
Modified:
dragonegg/trunk/src/Debug.cpp
Modified: dragonegg/trunk/src/Debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Debug.cpp?rev=182262&r1=182261&r2=182262&view=diff
==============================================================================
--- dragonegg/trunk/src/Debug.cpp (original)
+++ dragonegg/trunk/src/Debug.cpp Mon May 20 08:40:22 2013
@@ -706,8 +706,6 @@ DIType DebugInfo::createStructType(tree
llvm::SmallVector<Value*, 16> EltTys;
if (tree binfo = TYPE_BINFO(type)) {
- VEC(tree, gc) *accesses = BINFO_BASE_ACCESSES(binfo);
-
for (unsigned i = 0, e = BINFO_N_BASE_BINFOS(binfo); i != e; ++i) {
tree BInfo = BINFO_BASE_BINFO(binfo, i);
tree BInfoType = BINFO_TYPE(BInfo);
@@ -715,8 +713,8 @@ DIType DebugInfo::createStructType(tree
unsigned BFlags = 0;
if (BINFO_VIRTUAL_P(BInfo))
BFlags = llvm::DIType::FlagVirtual;
- if (accesses) {
- tree access = VEC_index(tree, accesses, i);
+ if (BINFO_BASE_ACCESSES(binfo)) {
+ tree access = BINFO_BASE_ACCESS(binfo, i);
if (access == access_protected_node)
BFlags |= llvm::DIType::FlagProtected;
else if (access == access_private_node)
More information about the llvm-commits
mailing list