Bill Wendling
5e5cf1a50c
Fix test for r165028. It only generates that flag for source files now.
...
<rdar://problem/12401423>
llvm-svn: 165029
2012-10-02 18:07:59 +00:00
Bill Wendling
3b2000fcac
During LTO, we call 'dsymutil' when we compile source files. This necessitates
...
clang specifying a temporary file that it later cleans up so that it can survive
the linking stage. However, when we compile object files during LTO we don't
call 'dsymutil'. That's done at a different stage (if at all). We rely upon the
linker to specify a unique name for the temporary file it generates.
<rdar://problem/12401423>
llvm-svn: 165028
2012-10-02 18:02:50 +00:00
Chandler Carruth
3903e05244
Fix a silly coding error on my part. The whole point of the speculator
...
being separate was that it can grow the use list. As a consequence, we
can't use the iterator-pair interface, we need an index based interface.
Expose such an interface from the AllocaPartitioning, and use it in the
speculator.
This should at least fix a use-after-free bug found by Duncan, and may
fix some of the other crashers.
I don't have a nice deterministic test case yet, but if I get a good
one, I'll add it.
llvm-svn: 165027
2012-10-02 17:49:47 +00:00
Rafael Espindola
ea0c5ecb28
Convert to FileCheck.
...
llvm-svn: 165026
2012-10-02 17:41:03 +00:00
Chad Rosier
0ede0986b9
No need to call the InitializeAll* functions.
...
llvm-svn: 165025
2012-10-02 16:41:12 +00:00
NAKAMURA Takumi
18fc445af5
FP_CONTRACT: Fix two tests for -Asserts.
...
llvm-svn: 165024
2012-10-02 16:36:54 +00:00
Argyrios Kyrtzidis
d4fcf58070
[libclang] When indexing an AST file, only deserialize the preprocessing record
...
entities of the current primary module.
llvm-svn: 165023
2012-10-02 16:10:51 +00:00
Argyrios Kyrtzidis
f590e094ad
Add info in the preprocessing record whether an inclusion directive
...
resulted in an automatic module import.
llvm-svn: 165022
2012-10-02 16:10:46 +00:00
Argyrios Kyrtzidis
b36ee5c592
[libclang] Even though we disable the preprocessing record during indexing,
...
make sure that it gets enabled for when a module needs to be created.
llvm-svn: 165021
2012-10-02 16:10:41 +00:00
Argyrios Kyrtzidis
472eda06b0
[libclang] Implement the importedASTFile indexing callback to provide
...
info about imported modules.
llvm-svn: 165020
2012-10-02 16:10:38 +00:00
Benjamin Kramer
bc2724f6e0
Fix broken tests.
...
llvm-svn: 165019
2012-10-02 15:49:34 +00:00
Alexander Potapenko
77c0ac2336
Do not patch the instruction address when symbolizing the reports.
...
Instead, print the correct address at runtime.
llvm-svn: 165018
2012-10-02 15:42:24 +00:00
Duncan Sands
f97cb15aee
Fix PR13991: legalizing an overflowing multiplication operation is harder than
...
the add/sub case since in the case of multiplication you also have to check that
the operation in the larger type did not overflow.
llvm-svn: 165017
2012-10-02 15:03:49 +00:00
Aaron Ballman
a99c35702d
Splitting this test case into two because the behavior for the calling convention code is target-specific.
...
llvm-svn: 165016
2012-10-02 14:56:00 +00:00
Aaron Ballman
e91c6be01e
Allowing individual targets to determine whether a given calling convention is allowed or ignored with warning. This allows for correct name mangling for x64 targets on Windows, which in turn allows for linking against the Win32 APIs.
...
Fixes PR13782
llvm-svn: 165015
2012-10-02 14:26:08 +00:00
Alexey Samsonov
30c01f25f1
[Sanitizer] fix line width
...
llvm-svn: 165009
2012-10-02 14:09:20 +00:00
Alexey Samsonov
78c340d205
[ASan] Change __asan_set_on_error_callback to weak overridable __asan_on_error, so that ASan would call the latter even if it finds the error early (i.e. during module initialization)
...
llvm-svn: 165008
2012-10-02 14:06:39 +00:00
Aaron Ballman
ac11a9b572
Silencing an MSVC warning about */ being found outside of a comment.
...
llvm-svn: 165007
2012-10-02 13:54:25 +00:00
Evgeniy Stepanov
49e8576a09
[*San]: handle EINTR.
...
llvm-svn: 165006
2012-10-02 13:41:40 +00:00
Axel Naumann
0439f03bcf
Add redecls into their lexical DeclContext: this is what they assert on, and the merging should have set it correctly.
...
This is especially relevant for templatedDecls that might be injected (and thus have their DeclContext set to) somewhere completely different.
llvm-svn: 165005
2012-10-02 13:06:13 +00:00
Dmitry Vyukov
56faa551b9
tsan: fix mac build
...
llvm-svn: 165004
2012-10-02 12:58:14 +00:00
Alexey Samsonov
298e237d7e
[ASan] Add extern C for __asan_symbolize on Windows
...
llvm-svn: 165003
2012-10-02 12:35:42 +00:00
Axel Naumann
2bd39fd2de
Enable programmatic provisioning of virtual module.map files (instead of writing out actual module.map files).
...
Opens up the wonders of clang::Modules to tools - though they remain as experimental as before.
llvm-svn: 165002
2012-10-02 12:26:36 +00:00
Axel Naumann
d9a25b3c17
Only those InterestingDecls that got added to the AST should be passed to the ASTConsumer.
...
llvm-svn: 165001
2012-10-02 12:18:46 +00:00
Alexey Samsonov
e29c6731aa
[Sanitizer/ASan] Simplify the code that prints and symbolizes stack traces. Fall back to module+offset if user-provided symbolizer failed. Use weak function __asan_symbolize instead of __asan_set_symbolize_callback in ASan interface, so that we're able to symbolize reports for errors that happen before the main() is called, for example, during module initialization.
...
llvm-svn: 165000
2012-10-02 12:11:17 +00:00
Dmitry Vyukov
a2c1c7a78e
tsan: wait for pending reports before exit
...
llvm-svn: 164999
2012-10-02 12:07:16 +00:00
Dmitry Vyukov
27d5b37c38
tsan: output tid's in reports
...
llvm-svn: 164998
2012-10-02 11:52:05 +00:00
Dmitry Vyukov
0c40a5600c
tsan: run output tests in parallel
...
llvm-svn: 164997
2012-10-02 11:51:40 +00:00
James Molloy
77639e2c72
Add default JIT LIT variable.
...
Patch by David Tweed!
llvm-svn: 164996
2012-10-02 10:57:08 +00:00
Benjamin Kramer
e42d406105
-arch is a darwin-specific driver feature, use a triple instead in rewriter test.
...
llvm-svn: 164995
2012-10-02 09:42:36 +00:00
Benjamin Kramer
4bb04704f3
Force triple in test to unbreak it on non-darwin platforms.
...
llvm-svn: 164994
2012-10-02 09:29:48 +00:00
Axel Naumann
63469422c4
Merge pending instantiations instead of overwriting existing ones.
...
Check whether a pending instantiation needs to be instantiated (or whether an instantiation already exists).
Verify the size of the PendingInstantiations record (was only checking size of existing PendingInstantiations).
Migrate Obj-C++ part of redecl-merge into separate test, now that this is growing.
templates.mm: test that CodeGen has seen exactly one definition of template instantiations.
redecl-merge.m: use "@" specifier for expected-diagnostics.
llvm-svn: 164993
2012-10-02 09:09:43 +00:00
Bill Wendling
7e5ef83cdb
Use an environment variable instead of what's in the make cmd goals.
...
llvm-svn: 164992
2012-10-02 06:19:15 +00:00
Greg Clayton
548e9a3e61
<rdar://problem/11791234>
...
Shared libraries on MacOSX were not properly being removed from the shared
module list when re-running a debug session due to an error in:
Module::MatchesModuleSpec()
llvm-svn: 164991
2012-10-02 06:04:17 +00:00
Ted Kremenek
2f88c40ded
Tweak diagnostic text to indicate that __weak on a local variable is only allowed
...
for ARC. Fixes <rdar://problem/12407705>
llvm-svn: 164990
2012-10-02 05:36:02 +00:00
Lang Hames
5de91cc35f
Add FP_CONTRACT support for clang.
...
Clang will now honor the FP_CONTRACT pragma and emit LLVM
fmuladd intrinsics for expressions of the form A * B + C (when they occur in a
single statement).
llvm-svn: 164989
2012-10-02 04:45:10 +00:00
Ted Kremenek
b67c6cc24d
Check if an IdentifierInfo* is null when the FunctionDecl isn't a simple C function.
...
Fixes <rdar://problem/12355298>
llvm-svn: 164988
2012-10-02 04:36:54 +00:00
Chandler Carruth
01f63b950c
Re-enable this test to reflect re-enabling the new SROA pass.
...
llvm-svn: 164987
2012-10-02 04:24:16 +00:00
Chandler Carruth
4e4359935b
Turn the new SROA pass back on. Let's see if it sticks this time. =]
...
Again, let me know if anything breaks due to this!
llvm-svn: 164986
2012-10-02 04:24:01 +00:00
Jason Molenda
68b3607fa2
Handle KASLR kernel loading for kernel corefiles.
...
Reduce the amount of output that DynamicLoaderDarwinKernel
prints for each kext it loads.
<rdar://problem/7714201>
llvm-svn: 164985
2012-10-02 03:49:41 +00:00
Jordan Rose
3c14b2339d
-Wformat: Don't check format strings in uninstantiated templates.
...
Also applies to -Wnonnull, -Wtype-safety, and -Wnon-pod-varargs.
All of these can be better checked at instantiation time.
This change does not actually affect regular CallExpr function calls,
since the checks there only happen after overload resolution.
However, it will affect Objective-C method calls.
<rdar://problem/12373934>
llvm-svn: 164984
2012-10-02 01:49:54 +00:00
Chad Rosier
380a74a339
Fix 80-column violations. Cleanup whitespace in generated code.
...
llvm-svn: 164983
2012-10-02 00:25:57 +00:00
NAKAMURA Takumi
5d62a7c5bb
clang/test/Index: Fix two tests. Both %S and %t are expanded to absolute paths.
...
llvm-svn: 164982
2012-10-02 00:11:53 +00:00
Hemant Kulkarni
08e410293f
Emit symbol tables.
...
Reorganize to derive all sections from SectionChunk.
Construct section table header from SectionChunk.
llvm-svn: 164981
2012-10-01 23:53:20 +00:00
Chad Rosier
bb90c414c4
[ms-inline asm] Use the convertToMapAndConstraints() function in the front-end.
...
Rework the logic to account for the fact that we no longer create a MCInst.
llvm-svn: 164980
2012-10-01 23:45:59 +00:00
Chad Rosier
f4e35dc672
[ms-inline asm] Add the convertToMapAndConstraints() function that is used to
...
map constraints and MCInst operands to inline asm operands. This replaces the
getMCInstOperandNum() function.
The logic to determine the constraints are not in place, so we still default to
a register constraint (i.e., "r"). Also, we no longer build the MCInst but
rather return just the opcode to get the MCInstrDesc.
llvm-svn: 164979
2012-10-01 23:45:51 +00:00
Michael Gottesman
101290bcef
[clang-tests] Changed relative paths to absolute paths in run command for annotate-macro-args.m, get-cursor-macro-args.m, import_self.c.
...
This fixes make check-all failures when make -C is used to run the tests.
llvm-svn: 164978
2012-10-01 23:39:44 +00:00
Fariborz Jahanian
e2a9d42297
Modern translator test. Breakup test into two and
...
skip the x86_64 version for mingw32 and win32.
llvm-svn: 164977
2012-10-01 23:25:52 +00:00
Sid Manning
e861d43f65
This change:
...
* Updates ReaderELF.cpp contentType method to match ELF.h's logic and now handle
typeData
* Add -arch to ldd-core testdriver
* Add testcase to check typeData
* Update others to stay in sync with this change.
llvm-svn: 164976
2012-10-01 23:23:05 +00:00
NAKAMURA Takumi
1d24e56bad
test/CodeGen/X86/red-zone2.ll: Add -mtriple=x86_64-linux, and FileCheck-ize.
...
llvm-svn: 164975
2012-10-01 22:48:07 +00:00