Alexey Samsonov
77029be19a
[ASan] fix one more memory leak in test case
...
llvm-svn: 190277
2013-09-08 14:01:07 +00:00
Alexey Samsonov
a302a1affc
[Sanitizer] Use generic configs for running sanitizer_common unit tests
...
llvm-svn: 190276
2013-09-08 13:52:07 +00:00
Joerg Sonnenberger
bd25241e0e
Drop the context forceLoadAllArchives() support. Rename the isForceLoad
...
attribute in LinkerInput to isWholeArchive and use that for deciding
whether library archives should be expanded. Implement the -all_load
option of the Darwin linker using this flag and drop the support for it
in GNU mode.
llvm-svn: 190275
2013-09-08 13:30:14 +00:00
Alexey Samsonov
071cc9e89d
[ASan] turn on leak checking for ASan tests and fix a few discovered leaks
...
llvm-svn: 190274
2013-09-08 13:23:29 +00:00
Sylvestre Ledru
65ebb58524
Bring back the build of libprofile_rt on Sparc. It is now working correctly. See:
...
https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.3&arch=sparc&ver=1%3A3.3-9&stamp=1378398308
Thanks to Luca Falavigna for the patch
llvm-svn: 190273
2013-09-08 09:15:09 +00:00
Manman Ren
b09878728f
Revert r190269 to fix dragonegg failures.
...
llvm-svn: 190271
2013-09-08 06:02:56 +00:00
Manman Ren
8ddddadb0b
Debug Info: use null instead of "i32 0" in DIBuilder.
...
For context field of subroutine_type and when creating artificial types.
llvm-svn: 190270
2013-09-08 06:00:42 +00:00
Manman Ren
93da987ea4
Debug Info: pass in DIScope instead of DIDescriptor in createMemberType.
...
Improve readability. No functionality change.
llvm-svn: 190269
2013-09-08 04:07:59 +00:00
Manman Ren
2c826dcc20
Debug Info: pass in DIScope instead of DIDescriptor in createFieldType.
...
Improve readability. No functionality change.
llvm-svn: 190268
2013-09-08 03:45:05 +00:00
Manman Ren
f2a88f3622
Debug Info Testing: update context from empty string to null.
...
Context should be either null or MDNode.
llvm-svn: 190267
2013-09-08 03:11:54 +00:00
Craig Topper
adbb9a121f
Add neverHasSideEffects=1 on a couple move instructions.
...
llvm-svn: 190259
2013-09-08 00:50:45 +00:00
Craig Topper
0a63e1da92
Using popcount should check the popcount feature flag not the SSE41 feature flag.
...
llvm-svn: 190258
2013-09-08 00:47:31 +00:00
David Majnemer
37c921e354
Correct typo.
...
llvm-svn: 190257
2013-09-07 20:21:47 +00:00
Adrian Prantl
ee30f63cc1
Auto-detect the architecture of the executable instead of using the arch of
...
the kernel.
llvm-svn: 190256
2013-09-07 20:04:29 +00:00
Joerg Sonnenberger
a82566b86e
Update documentation.
...
llvm-svn: 190255
2013-09-07 18:01:39 +00:00
Joerg Sonnenberger
0310e734c3
Run clang-format.
...
llvm-svn: 190254
2013-09-07 17:56:23 +00:00
Joerg Sonnenberger
5e235de9d3
Change the parseFile argument from MemoryBuffer pointer to LinkerInput
...
reference. Move readFile logic into FileNode::createLinkerInput.
llvm-svn: 190253
2013-09-07 17:55:28 +00:00
Adrian Prantl
002c2a8ece
Set the architecture when creating a target.
...
llvm-svn: 190252
2013-09-07 17:14:37 +00:00
Marshall Clow
630c5e535c
LWG Issue 2210 (Part #1 ): deque
...
llvm-svn: 190251
2013-09-07 16:16:19 +00:00
Bill Wendling
d14f153a7e
Run clang-format on these header files. Part of a WIP.
...
llvm-svn: 190250
2013-09-07 11:55:36 +00:00
Enea Zaffanella
82a65fc828
Fixed bug in call to CXXTemporaryObjectExpr ctor.
...
llvm-svn: 190249
2013-09-07 11:22:02 +00:00
Sylvestre Ledru
525e4444c4
add OCLint to the list of projects based on clang
...
llvm-svn: 190248
2013-09-07 07:59:01 +00:00
Sylvestre Ledru
26a4fff380
add he 'include what you use' project
...
llvm-svn: 190247
2013-09-07 07:56:03 +00:00
Sylvestre Ledru
215707b660
remove the description about clang & llvm in the freebsd section (the reader probably know what are llvm and clang
...
llvm-svn: 190246
2013-09-07 07:52:20 +00:00
Sylvestre Ledru
e1f8a17a9c
about the debian effort to rebuild the archive with clang
...
llvm-svn: 190245
2013-09-07 07:51:23 +00:00
Sylvestre Ledru
901be185d8
Clang event are now part of the llvm events. Add a link to the LLVM events
...
llvm-svn: 190244
2013-09-07 07:39:49 +00:00
Sylvestre Ledru
a07226fff8
Update the link to the current code coverage reports (the previous one has not been updated since february 2010) + remove the spec references, not updated since May 2010
...
llvm-svn: 190243
2013-09-07 07:37:18 +00:00
David Majnemer
5d22e7e4c3
'return' before 'else' is bad style
...
llvm-svn: 190241
2013-09-07 07:11:04 +00:00
David Majnemer
59c0ec2396
AST: __uuidof should leak through templated types
...
Summary:
__uuidof on templated types should exmaine if any of its template
parameters have a uuid declspec. If exactly one does, then take it.
Otherwise, issue an appropriate error.
Reviewers: rsmith, thakis, rnk
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1419
llvm-svn: 190240
2013-09-07 06:59:46 +00:00
Enea Zaffanella
76e98feb57
Fix missing source location in CXXTemporaryObjectExpr nodes.
...
For clarity, renamed (get/set)ParenRange as (get/set)ParenOrBraceRange
in CXXConstructExpr nodes.
Added testcase.
llvm-svn: 190239
2013-09-07 05:49:53 +00:00
Virgile Bello
d87fc157d2
Added some MSVC required functions in Windows.cpp. Moved MSVC specific getopt code inside its own folder.
...
llvm-svn: 190238
2013-09-07 05:05:49 +00:00
Tobias Grosser
3613fd7a35
ScopInfo: Correctly handle true/false conditions
...
This is a modified version of the orignally contributed patch.
Contributed-by: alexandre.isoard@gmail.com
llvm-svn: 190237
2013-09-07 01:54:13 +00:00
Akira Hatanaka
9f9bc4f770
[mips] Fix typos.
...
llvm-svn: 190236
2013-09-07 01:14:42 +00:00
Akira Hatanaka
6379121694
[mips] Enhance command line option "-mno-ldc1-sdc1" to expand base+index double
...
precision loads and stores as well as reg+imm double precision loads and stores.
Previously, expansion of loads and stores was done after register allocation,
but now it takes place during legalization. As a result, users will see double
precision stores and loads being emitted to spill and restore 64-bit FP registers.
llvm-svn: 190235
2013-09-07 00:52:30 +00:00
Akira Hatanaka
92ec3bd50b
[mips] Place parentheses around && to silence warning.
...
llvm-svn: 190234
2013-09-07 00:26:26 +00:00
Richard Smith
d9e5ff24e6
Remove verifier check that attribute 'builtin' is only applied to calls to
...
functions marked 'nobuiltin'. That approach doesn't play well with LTO, and
there's no harm in marking a call as 'builtin' if it was going to be a builtin
regardless.
llvm-svn: 190233
2013-09-07 00:25:48 +00:00
Akira Hatanaka
6a3fe57444
[mips] Add definition of instruction "drotr32" (double rotate right plus 32).
...
llvm-svn: 190232
2013-09-07 00:18:01 +00:00
Manman Ren
c4ae9b3aeb
Debug Info: Use identifier to reference DIType in containing type field of
...
a DISubprogram.
Verifier is updated accordingly.
llvm-svn: 190229
2013-09-07 00:04:05 +00:00
Akira Hatanaka
3121353c99
[mips] Use uimm5 and uimm6 instead of shamt and imm, if the immediate has to fit
...
into a 5-bit or 6-bit field.
llvm-svn: 190226
2013-09-07 00:02:02 +00:00
Manman Ren
275520608b
Debug Info: pass in VTableHolder as DIType instead of MDNode *.
...
Remove one cast and improve readability. No functionality change.
llvm-svn: 190225
2013-09-06 23:54:23 +00:00
Akira Hatanaka
79e38cde37
[mips] Define "trap" as a pseudo instruction that turns into "break 0, 0".
...
llvm-svn: 190224
2013-09-06 23:52:46 +00:00
Fariborz Jahanian
215f96c084
ObjectiveC migrator: When inferring a property,
...
preserve getter's attribute. Also, do not attach
an inferred NS_RETURNS_INNER_POINTER to the inferred
property (it is illegal).
llvm-svn: 190223
2013-09-06 23:45:20 +00:00
Hal Finkel
fdd91c92d0
Reorder libm LIBBUILTIN definition groups
...
The groups of libm LIBBUILTIN definitions are reordered to match the order of
the corresponding __builtin_* definitions (which occur earlier in the
Builtins.def file).
No functionality change intended.
llvm-svn: 190222
2013-09-06 23:45:10 +00:00
Akira Hatanaka
50eebac68b
[mips] Delete unused classes and defs.
...
llvm-svn: 190221
2013-09-06 23:42:58 +00:00
Akira Hatanaka
2c544d8ed5
[mips] Make "b" (unconditional branch) a pseudo. "b" is an assembly idiom, which is
...
equivalent to "beq $zero, $zero, offset".
llvm-svn: 190220
2013-09-06 23:40:15 +00:00
Akira Hatanaka
dffc542123
[mips] Set instruction itineraries of loads, stores and conditional moves.
...
llvm-svn: 190219
2013-09-06 23:28:24 +00:00
Hal Finkel
8e9518ac9d
Reorder libm LIBBUILTIN definitions
...
The libm LIBBUILTIN definitions are reordered to the canonical (and
alphabetical) double (''), float ('f'), long double ('l') ordering.
No functionality change intended.
llvm-svn: 190218
2013-09-06 23:23:53 +00:00
Hal Finkel
746b530a7d
Add the missing "n" to libm LIBBUILTIN definitions
...
The libm math functions should be marked with the "n" (nothrow) flag so that
the corresponding IR function declarations are tagged with the nounwind
attribute (this has been true in C mode, but not in C++ mode).
The test case has been updated to run in C++ mode in addition to in C mode.
llvm-svn: 190217
2013-09-06 23:23:32 +00:00
Manman Ren
d8c68b1852
TBAA: add isTBAAVtableAccess to MDNode so clients can call the function
...
instead of having its own implementation.
The implementation of isTBAAVtableAccess is in TypeBasedAliasAnalysis.cpp
since it is related to the format of TBAA metadata.
The path for struct-path tbaa will be exercised by
test/Instrumentation/ThreadSanitizer/read_from_global.ll, vptr_read.ll, and
vptr_update.ll when struct-path tbaa is on by default.
llvm-svn: 190216
2013-09-06 22:47:05 +00:00
Adrian Prantl
5ef1c861dd
Use a more backwards-compatible method for evaluating expressions and add
...
more explanatory error messages.
llvm-svn: 190215
2013-09-06 22:33:52 +00:00