- Mar 18, 2010
-
-
Douglas Gregor authored
preprocessing record. Use that link with clang_getCursorReferenced() and clang_getCursorDefinition() to match instantiations of a macro to the definition of the macro. llvm-svn: 98842
-
Andrew Lenharth authored
llvm-svn: 98840
-
Chris Lattner authored
files that produce special relocation types where the linker changes movq's into lea's. llvm-svn: 98839
-
Dan Gohman authored
llvm-svn: 98838
-
Douglas Gregor authored
generated by clang_annotateTokens(). llvm-svn: 98837
-
Douglas Gregor authored
the macro definitions and macro instantiations that are found during preprocessing. Preprocessing records are *not* generated by default; rather, we provide a PPCallbacks subclass that hooks into the existing callback mechanism to record this activity. The only client of preprocessing records is CIndex, which keeps track of macro definitions and instantations so that they can be exposed via cursors. At present, only token annotation uses these facilities, and only for macro instantiations; both will change in the near future. However, with this change, token annotation properly annotates macro instantiations that do not produce any tokens and instantiations of macros that are later undef'd, improving our consistency. Preprocessing directives that are not macro definitions are still handled by clang_annotateTokens() via re-lexing, so that we don't have to track every preprocessing directive in the preprocessing record. Performance impact of preprocessing records is still TBD, although it is limited to CIndex and therefore out of the path of the main compiler. llvm-svn: 98836
-
Chris Lattner authored
llvm-svn: 98835
-
Benjamin Kramer authored
llvm-svn: 98833
-
Bob Wilson authored
intrinsics. The intrinsic lookup code assumes that this check has been done and assumes the names are at least 6 characters long. Valgrind complained about this. pr6638. llvm-svn: 98831
-
Devang Patel authored
llvm-svn: 98830
-
Dan Gohman authored
BumpPtrAllocator-allocated region to allow it to be stored in a more compact form and to avoid the need for a non-trivial destructor call. Use this new mechanism in ScalarEvolution instead of FastFoldingSetNode to avoid leaking memory in the case where a FoldingSetNodeID uses heap storage, and to reduce overall memory usage. llvm-svn: 98829
-
Douglas Gregor authored
llvm-svn: 98827
-
Douglas Gregor authored
token sequence to detect macro instantiations (that produce at least token). WIP. llvm-svn: 98826
-
Douglas Gregor authored
llvm-svn: 98825
-
Wesley Peck authored
llvm-svn: 98824
-
Kovarththanan Rajaratnam authored
llvm-svn: 98823
-
Kovarththanan Rajaratnam authored
llvm-svn: 98822
-
Oscar Fuentes authored
Patch by Victor Zverovich! llvm-svn: 98821
-
Kovarththanan Rajaratnam authored
llvm-svn: 98820
-
Benjamin Kramer authored
llvm-svn: 98819
-
John McCall authored
non-placement news when selecting the corresponding operator delete; this is fixed. Access and ambiguity control for calls to operator new and delete. Also AFAICT llvm-svn: 98818
-
Kovarththanan Rajaratnam authored
llvm-svn: 98817
-
Kovarththanan Rajaratnam authored
llvm-svn: 98816
-
Jeffrey Yasskin authored
under valgrind: ==19577== Invalid free() / delete / delete[] ==19577== at 0x4C9C866: free (vg_replace_malloc.c:325) ==19577== by 0x5121104: ??? (in /lib/libc-2.10.2.so) ==19577== by 0x4C97412: _vgnU_freeres (vg_preloaded.c:62) ==19577== by 0x5041486: __run_exit_handlers (exit.c:93) ==19577== by 0x50414FE: exit (exit.c:100) ==19577== by 0x5028B5C: (below main) (libc-start.c:254) ==19577== Address 0xffffffff is not stack'd, malloc'd or (recently) free'd ==19577== Apparently this happens under certain versions of glibc, so valgrind provides the --run-libc-freeres=no option to avoid calling freeres(). This may increase the number of "still reachable" blocks valgrind reports, but we don't care about those, while this error breaks the buildbots. There are upstream bugs about this at http://sourceware.org/bugzilla/show_bug.cgi?id=10610 and http://bugs.kde.org/show_bug.cgi?id=167483, but they don't look likely to be fixed. llvm-svn: 98813
-
Evan Cheng authored
llvm-svn: 98810
-
Chris Lattner authored
llvm-svn: 98809
-
John McCall authored
so they don't trigger diagnostics like (say) access control. llvm-svn: 98806
-
Ted Kremenek authored
llvm-svn: 98801
-
Ted Kremenek authored
for both CallExprs and ObjCMessageExprs. llvm-svn: 98800
-
Anders Carlsson authored
llvm-svn: 98799
-
Ted Kremenek authored
uninitialized data. llvm-svn: 98796
-
Ted Kremenek authored
a scalar variable with a scalar parameter. This is a form of defensive programming. If the variable is unused, it will be caused by -Wunused-variable. llvm-svn: 98795
-
Ted Kremenek authored
llvm-svn: 98794
-
Dan Gohman authored
llvm-svn: 98793
-
Daniel Dunbar authored
MCValue: Change to holding MCSymbolRefExprs instead of MCSymbols, we will need this for accessing to symbol modifiers. llvm-svn: 98791
-
Daniel Dunbar authored
llvm-svn: 98790
-
Daniel Dunbar authored
MC/Darwin: Add a new target hook for whether the target uses "reliable" symbol differences, basically whether the assembler should attempt to understand atoms when using scattered symbols. Also, avoid some virtual call overhead. llvm-svn: 98789
-
Ted Kremenek authored
the PCHReader more robust to corrupt or invalid PCH files. llvm-svn: 98788
-
Douglas Gregor authored
directives while annotating tokens in CIndex. This functionality should probably be factored out of this routine, but we're not there yet. llvm-svn: 98786
-
Jakob Stoklund Olesen authored
This reverts commit 98776. It broke the llvm-gcc boot strap. llvm-svn: 98784
-