| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 47346
|
| |
|
|
|
|
| |
Fix Olden/bh test.
llvm-svn: 47292
|
| |
|
|
|
|
|
|
| |
is an array type not a pointer type. This requires updating some
diags that change and updating the code generator to handle the
proper form of strings.
llvm-svn: 46941
|
| |
|
|
| |
llvm-svn: 46801
|
| |
|
|
|
|
| |
simplify the code and generally make it more robust.
llvm-svn: 46745
|
| |
|
|
| |
llvm-svn: 46742
|
| |
|
|
|
|
| |
qualifiers use the __attribute__((address_space(id))) syntax.
llvm-svn: 46691
|
| |
|
|
|
|
|
|
|
|
|
| |
should be merged just like normal globals. This fixes this testcase
that Anders provided:
static struct s a;
static struct s *ap1 = &a;
static struct s a = { 10 };
llvm-svn: 46661
|
| |
|
|
| |
llvm-svn: 46386
|
| |
|
|
| |
llvm-svn: 46371
|
| |
|
|
| |
llvm-svn: 46343
|
| |
|
|
|
|
| |
extern "C" in C++ mode. Patch by Mike Stump!
llvm-svn: 45904
|
| |
|
|
|
|
| |
This fixes a crash reported by Seo Sanghyeon
llvm-svn: 45778
|
| |
|
|
|
|
|
| |
initializing a global. This handles important cases like:
float foo3 = -0.01f;
llvm-svn: 45427
|
| |
|
|
|
|
| |
discussion of this change.
llvm-svn: 45410
|
| |
|
|
|
|
| |
reported by Seo.
llvm-svn: 45156
|
| |
|
|
|
|
| |
Intrinsic::getDeclaration, allowing much more terse code.
llvm-svn: 45136
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
we emit stuff like this:
abort on missing sema of initializers, now
we emit stuff like this:
t3.c:1:24: warning: cannot codegen this initializer yet
const char x[2][4] = { { 'a', 'b', '\0', '\0' }, { 'c', 'd', 'e', '\0' } };
^~~~~~~~~~~~~~~~~~~~~~~~
This should be removed when sema is finished.
llvm-svn: 45086
|
| |
|
|
| |
llvm-svn: 45081
|
| |
|
|
| |
llvm-svn: 44968
|
| |
|
|
| |
llvm-svn: 44963
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation.
Added many utility methods to FullSourceLoc to provide shorthand for:
FullLoc.getManager().someMethod(FullLoc.getLocation());
instead we have:
FullLoc.someMethod();
Modified TextDiagnostics (and related classes) to use this short-hand.
llvm-svn: 44957
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SourceManager is passed by reference, allowing the SourceManager to be
associated with a specific translation unit, and not the entire execution
of the driver.
Modified all users of Diagnostics to comply with this new interface.
Integrated SourceManager as a member variable of TargetInfo. TargetInfo will
eventually be associated with a single translation unit (just like
SourceManager).
Made the SourceManager reference in ASTContext private. Provided accessor
getSourceManager() for clients to use instead. Modified clients to comply with
new interface.
llvm-svn: 44878
|
| |
|
|
|
|
| |
the types are right in sema. Thanks Steve.
llvm-svn: 44834
|
| |
|
|
|
|
| |
type.
llvm-svn: 44809
|
| |
|
|
|
|
| |
char text[] = "string";
llvm-svn: 44752
|
| |
|
|
| |
llvm-svn: 44751
|
| |
|
|
|
|
|
|
| |
char text[8] = "string";
Big fixme remains.
llvm-svn: 44750
|
| |
|
|
| |
llvm-svn: 44730
|
| |
|
|
|
|
| |
-pedantic-errors flags it). Allow CodeGen to truncate the initializer if needed.
llvm-svn: 44518
|
| |
|
|
| |
llvm-svn: 44512
|
| |
|
|
| |
llvm-svn: 44511
|
| |
|
|
| |
llvm-svn: 44510
|
| |
|
|
|
|
|
|
|
|
|
| |
such as:
extern int x[];
void foo() { x[0] = 1; }
int x[10];
void bar() { x[0] = 1; }
llvm-svn: 44509
|
| |
|
|
| |
llvm-svn: 44507
|
| |
|
|
|
|
| |
their prototype.
llvm-svn: 44506
|
| |
|
|
| |
llvm-svn: 44505
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
t.c:3322:5: warning: cannot codegen this yet
__asm__ ("bswap %0" : "+r" (_data));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
instead of:
Unimplemented stmt!
(AsmStmt 0x80eaa0 <t.c:3331:5, line:3334:28>)
llvm-svn: 44501
|
| |
|
|
|
|
|
|
| |
We now use the CodeGenModule logic for generating the constant
initialiser expression, so happily further initialiser fixes should
automatically work for statics as well.
llvm-svn: 44495
|
| |
|
|
|
|
| |
merge string literals when it is not provided.
llvm-svn: 44394
|
| |
|
|
|
|
|
|
| |
test/CodeGen/global-with-initialiser.c
Patch by Oliver Hunt!
llvm-svn: 44290
|
| |
|
|
| |
llvm-svn: 43593
|
| |
|
|
|
|
|
|
| |
Make target info available to clang code generator. This is far from complete but this helps clang codegen module make progress.
At the moment target triplet and target description strings are hard coded in clang::TargetInfo
llvm-svn: 43572
|
| |
|
|
| |
llvm-svn: 43569
|
| |
|
|
| |
llvm-svn: 43544
|
| |
|
|
|
|
|
| |
This is far from complete but this helps clang codegen module
make progress.
llvm-svn: 43536
|
| |
|
|
| |
llvm-svn: 43519
|
| |
|
|
| |
llvm-svn: 43516
|
| |
|
|
| |
llvm-svn: 43383
|
| |
|
|
|
|
|
|
| |
Silenced some VC++ warnings.
Had to rephrase a partial specialization of the IntrospectionTrait struct in SerializationTest.cpp, please review.
Added a compiler specific workaround in IdentifierTable.h. Is that the way to fix this kind of issues?
llvm-svn: 43074
|