- Aug 06, 2008
-
-
Nico Weber authored
llvm-svn: 54383
-
Daniel Dunbar authored
having multiple bindings from all the possible decls which conceptually map to the same global). - This eliminates CodeGen depending on the LLVM module for name lookup. - This also eliminates the need for ReplaceMapValuesWith (hurrah). - This handles lookups for FunctionDecls correctly in the presence of aliases, this was previously broken. - WIP: Can still clean up & unify variable and function emission. llvm-svn: 54382
-
Nico Weber authored
llvm-svn: 54381
-
- Aug 05, 2008
-
-
Ted Kremenek authored
Added decl_iterator to DeclStmt to provide an abstract interface to iterate over the ScopedDecls of a DeclStmt. Updated a few clients of DeclStmt::getNextDeclarator() to use decl_iterator instead. Will update other clients after additional testing. llvm-svn: 54368
-
Ted Kremenek authored
llvm-svn: 54366
-
Ted Kremenek authored
Refactored driver logic for CodeGen into LLVMCodeGenWriter. This ASTConsumer layers on top of LLVMCodeGen (another existing ASTConsumer) to emit bitcode files to disk. This layering takes this logic out of clang.cpp and puts it directly into the ASTConsumer interface. The benefit is that now --emit-llvm works with both serialized ASTs and regular source files. llvm-svn: 54364
-
Daniel Dunbar authored
ActOnDeclarator. llvm-svn: 54353
-
-
Daniel Dunbar authored
- ActOnDeclarator now takes an additional parameter which is the AsmLabel if used. Its unfortunate that this bubbles up this high, but we cannot just lump it in as an attribute without mistakenly *accepting* it as an attribute. - The actual asm-label itself is, however, encoded as an AsmLabelAttr on the FunctionDecl. - Slightly improved parser error recovery on malformed asm-labels. - CodeGen support still missing... llvm-svn: 54339
-
Daniel Dunbar authored
- <rdar://problem/6122967> llvm-svn: 54338
-
Daniel Dunbar authored
- Like EXTENSION but always generates a warning (even without -pedantic). - Updated ptr -> int, int -> ptr, and incompatible cast warnings to be EXTWARN. - Other EXTENSION level diagnostics should be audited for upgrade. - Updated several test cases to fix code which produced unanticipated warnings. llvm-svn: 54335
-
Ted Kremenek authored
"the attached patch fixes some typos, 80 cols violations, etc. in comments." llvm-svn: 54328
-
- Aug 04, 2008
-
-
Daniel Dunbar authored
- clang was erroneously accepting address-of applied to lvalue expressions involving pointer arithmetic. - clang was erroneously rejecting address-of applied to deref expressions of pointer-typed variables. - Improved existing test case. - Fixes: <rdar://problem/6113867>, <rdar://problem/6080158> llvm-svn: 54326
-
Daniel Dunbar authored
llvm-svn: 54322
-
Daniel Dunbar authored
- Follows emission scheme used by llvm-gcc, i.e. invent an id for each label whose address is taken and replace each indirect goto by a switch to each possible target. - Currently we emit a switch for each indirect goto instead of merging them as llvm-gcc does. llvm-svn: 54318
-
Chris Lattner authored
Finally fix PR2189. This makes a fairly invasive but important change to move getAsArrayType into ASTContext instead of being a method on type. This is required because getAsArrayType(const AT), where AT is a typedef for "int[10]" needs to return ArrayType(const int, 10). Fixing this greatly simplifies getArrayDecayedType, which is a good sign. llvm-svn: 54317
-
- Aug 02, 2008
-
-
Ted Kremenek authored
llvm-svn: 54268
-
- Aug 01, 2008
-
-
Argyrios Kyrtzidis authored
No functionality change. llvm-svn: 54265
-
Argyrios Kyrtzidis authored
llvm-svn: 54264
-
Daniel Dunbar authored
- There is an miscompilation issue remaining due to a poor interaction between the delayed emission of static functions and the emission of constructors, but that already existed prior to this change. llvm-svn: 54258
-
Daniel Dunbar authored
- Including possible priority argument - In other news, the attribute parsing code really needs a cleanup llvm-svn: 54257
-
- Jul 31, 2008
-
-
Ted Kremenek authored
Enhanced path-sensitive return-of-stack-address check to print out the name of the variable whose address was returned. llvm-svn: 54253
-
Chris Lattner authored
http://llvm.org/viewvc/llvm-project?view=rev&revision=54107 llvm-svn: 54242
-
Mon P Wang authored
different address spaces) for llvm r54195. llvm-svn: 54241
-
- Jul 30, 2008
-
-
Daniel Dunbar authored
<rdar://problem/6113085> llvm-svn: 54237
-
Ted Kremenek authored
llvm-svn: 54219
-
Daniel Dunbar authored
instead of mapping the decl to a bitcast of the global to the correct type. - GetAddrOf{Function,GlobalVar} introduce the bitcast on every use now. - This solves a problem where a dangling pointer could be introduced by the RAUW done when replacing a forward or tentative definition. See testcase for more details. - Fixes <rdar://problem/6108358> llvm-svn: 54211
-
Daniel Dunbar authored
- No (intended) functionality change. - Primary purpose is to clearly separate (lazy) construction of globals that are a forward declaration or tentative definition from those that are the final definition. - Lazy construction is now encapsulated in GetAddrOf{Function,GlobalVar} while final definitions are constructed in EmitGlobal{Function,Var}Definition. - External interface for dealing with globals is now limited to EmitGlobal and GetAddrOf{Function,GlobalVar}. - Also updated helper functions dealing with statics, annotations, and ctors to be private. llvm-svn: 54179
-
- Jul 29, 2008
-
-
Daniel Dunbar authored
- Killed useless CodeGenModule::EmitGlobalVarDeclarator, instead just recurse on any ScopedDecl. - Fix for <rdar://problem/6093838> llvm-svn: 54162
-
- Jul 27, 2008
-
-
Eli Friedman authored
llvm-svn: 54119
-
Ted Kremenek authored
Fix serialization for TypedefType by allowing TypedefType to access the internal CanonicalType stored in Type. The test case Serialization/stmt_exprs.c now passes. llvm-svn: 54117
-
Chris Lattner authored
with QualTypes and Types. llvm-svn: 54116
-
Chris Lattner authored
llvm-svn: 54114
-
Chris Lattner authored
Serialization/stmt_exprs.c, but I don't know the right solution. Will fix when I get a chance to talk to Ted about it. llvm-svn: 54109
-
Chris Lattner authored
llvm-svn: 54108
-
Chris Lattner authored
llvm-svn: 54107
-
Chris Lattner authored
llvm-svn: 54106
-
Chris Lattner authored
ASTContext::getCanonicalType instead (PR2189) llvm-svn: 54105
-
- Jul 26, 2008
-
-
Chris Lattner authored
of doing it directly. This is required for PR2189. llvm-svn: 54102
-
Chris Lattner authored
llvm-svn: 54101
-