[llvm-commits] [123430] patch for test/CFrontend/2007-02-04-AddrLValue.c and PR1176, by Anton.
clattner at apple.com
clattner at apple.com
Sun Feb 4 19:50:26 PST 2007
Revision: 123430
Author: clattner
Date: 2007-02-04 19:50:26 -0800 (Sun, 04 Feb 2007)
Log Message:
-----------
patch for test/CFrontend/2007-02-04-AddrLValue.c and PR1176, by Anton.
Modified Paths:
--------------
apple-local/branches/llvm/gcc/llvm-convert.cpp
apple-local/branches/llvm/gcc/llvm-internal.h
Modified: apple-local/branches/llvm/gcc/llvm-convert.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-convert.cpp 2007-02-05 02:18:43 UTC (rev 123429)
+++ apple-local/branches/llvm/gcc/llvm-convert.cpp 2007-02-05 03:50:26 UTC (rev 123430)
@@ -46,6 +46,7 @@
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
+#include "c-tree.h" // FIXME: eliminate.
#include "tree-iterator.h"
#include "output.h"
#include "diagnostic.h"
@@ -5044,6 +5045,8 @@
case ARRAY_RANGE_REF:
case ARRAY_REF: return EmitLV_ARRAY_REF(exp);
case INDIRECT_REF: return EmitLV_INDIRECT_REF(exp);
+ case COMPOUND_LITERAL_EXPR:
+ return EmitLV_COMPOUND_LITERAL_EXPR(exp);
}
}
@@ -5229,4 +5232,10 @@
return Convert(TREE_OPERAND(exp, 0));
}
+Constant *TreeConstantToLLVM::EmitLV_COMPOUND_LITERAL_EXPR(tree exp) {
+ tree Decl = COMPOUND_LITERAL_EXPR_DECL(exp);
+ return EmitLV(Decl);
+}
+
/* APPLE LOCAL end LLVM (ENTIRE FILE!) */
+
Modified: apple-local/branches/llvm/gcc/llvm-internal.h
===================================================================
--- apple-local/branches/llvm/gcc/llvm-internal.h 2007-02-05 02:18:43 UTC (rev 123429)
+++ apple-local/branches/llvm/gcc/llvm-internal.h 2007-02-05 03:50:26 UTC (rev 123430)
@@ -514,6 +514,7 @@
static Constant *EmitLV_COMPONENT_REF(tree_node *exp);
static Constant *EmitLV_ARRAY_REF(tree_node *exp);
static Constant *EmitLV_INDIRECT_REF(tree_node *exp);
+ static Constant *EmitLV_COMPOUND_LITERAL_EXPR(tree_node *exp);
};
#endif
More information about the llvm-commits
mailing list