Aaron Ballman
3e424b5070
Teach the diagnostics engine about the Attr type to make reporting on semantic attributes easier (and not require hard-coded strings). This requires a getSpelling() function on the Attr class, which is table-driven. Updates a handful of cases where a hard-coded string was being used to test the functionality out. Updating associated test cases for the improved quoting.
...
llvm-svn: 198055
2013-12-26 18:30:57 +00:00
Aaron Ballman
88fe322053
Removed a string literal for an attribute name, which means the attribute name will be quoted in the diagnostic. Manually added some quotes to a diagnostic for consistency. Updated the test cases as appropriate.
...
llvm-svn: 198054
2013-12-26 17:30:44 +00:00
Aaron Ballman
cedaaea691
This diagnostic did not accept arguments, and did not have any test coverage. Parameterized the diagnostic, and made it more consistent with other attribute diagnostic wordings. Added test coverage.
...
Since this warning was generalized, it was also given a sensible warning group flag and the corresponding test was updated to reflect this.
llvm-svn: 198053
2013-12-26 17:07:49 +00:00
Aaron Ballman
213cf41a58
s/getter_setter/accessor No functional changes intended.
...
Thanks to Alp Toker for the naming suggestion!
llvm-svn: 198052
2013-12-26 16:35:04 +00:00
Aaron Ballman
faed0fa3d7
Simplifying some diagnostics so that they don't need to work with StringRefs. No functional changes intended.
...
llvm-svn: 198051
2013-12-26 16:30:30 +00:00
Aaron Ballman
190bad459c
Getting rid of a string literal in favor of the generalized diagnostic.
...
llvm-svn: 198050
2013-12-26 16:13:50 +00:00
Aaron Ballman
9e35bfe3f1
Parameterizing some MS property-related diagnostics. No functional changes intended.
...
llvm-svn: 198049
2013-12-26 15:46:38 +00:00
Alexander Potapenko
c87794d055
[ASan] Delete asan_intercepted_functions.h, move the code into asan_interceptors.h
...
Fixes https://code.google.com/p/address-sanitizer/issues/detail?id=188 .
llvm-svn: 198048
2013-12-26 15:34:31 +00:00
Aaron Ballman
6828945dd2
No need for the manual quotes and extra getName() call. No functional changes intended.
...
llvm-svn: 198047
2013-12-26 15:06:01 +00:00
Aaron Ballman
553e68118f
Removing some unneeded code, and a diagnostic that was obsoleted. The type has already been determined to be a ValueDecl by virtue of the attribute subjects.
...
Added some test case coverage as well.
llvm-svn: 198046
2013-12-26 14:54:11 +00:00
Roman Divacky
216a0ff5b3
Fix a typo.
...
llvm-svn: 198045
2013-12-26 14:43:33 +00:00
Kostya Serebryany
2b5fddbc75
[asan] allow asan to use SizeClassAllocator32 on a 64-bit platform (if SANITIZER_CAN_USE_ALLOCATOR64=0). No functionality change by default is intended
...
llvm-svn: 198044
2013-12-26 13:52:38 +00:00
Joerg Sonnenberger
a13f8b4f36
Recognize armv7a and friends as aliases for armv7-a etc. for the purpose
...
of architecture naming.
llvm-svn: 198043
2013-12-26 11:50:28 +00:00
Rui Ueyama
fc5f18ba0d
Fix a bug that undefined symbols are not reported if dead-stripping is enabled.
...
There was a bug that the linker does not report an error if symbols specified
by -u (or /include on Windows) are not resolved. This patch fixes it by adding
such symbols to the dead strip root.
llvm-svn: 198041
2013-12-26 08:37:16 +00:00
Rui Ueyama
841016aeba
Remove unnecessary call of DenseMap::clear.
...
It should be always true that _liveAtoms is empty, so we don't have to clear it.
Add an assert() instead.
llvm-svn: 198040
2013-12-26 08:11:06 +00:00
Enrico Granata
cb0c85e166
Fix sidebar links
...
llvm-svn: 198039
2013-12-26 07:23:52 +00:00
Enrico Granata
0e0e9f531f
Adding a document that describes the architecture of data formatters. Suggestions and ideas for improvements most welcome
...
llvm-svn: 198038
2013-12-26 07:21:41 +00:00
Rui Ueyama
e5531fae6c
Micro-optimize Resolver::markLive().
...
This patch eliminates one std::set lookup per a function call.
llvm-svn: 198037
2013-12-26 07:13:28 +00:00
Rui Ueyama
c481b5b66d
Simplify. No functionality change.
...
llvm-svn: 198036
2013-12-26 07:02:33 +00:00
Rui Ueyama
0cbd7e0d03
Do not make an unnecessary copy of DenseMap.
...
llvm-svn: 198035
2013-12-26 06:57:37 +00:00
Rui Ueyama
61b851ab06
Remove duplicate methods.
...
llvm-svn: 198034
2013-12-26 06:35:35 +00:00
Rui Ueyama
b561f9eb0d
[PECOFF] Fix wrong message.
...
llvm-svn: 198033
2013-12-26 06:26:47 +00:00
Rui Ueyama
610d90b283
[PECOFF] Do not accept "/include <string>" option.
...
Command line argument separator on Windows is colon. We used to accept space
as a separator, but we removed most of the code for that. This patch is to
delete the remaining code.
llvm-svn: 198032
2013-12-26 06:00:26 +00:00
Saleem Abdulrasool
a554968dde
ARM IAS: support .even directive
...
The .even directive aligns content to an evan-numbered address. This is an ARM
specific directive applicable to any section.
llvm-svn: 198031
2013-12-26 01:52:28 +00:00
Venkatraman Govindaraju
bf683fd15c
[Sparc] Lower and MachineInstr to MC and print assembly using MCInstPrinter.
...
llvm-svn: 198030
2013-12-26 01:49:59 +00:00
Venkatraman Govindaraju
08bcf29068
[Sparc] Add target specific MCExpr class to handle sparc specific modifiers like %hi, %lo, etc.,
...
llvm-svn: 198029
2013-12-26 00:01:52 +00:00
Venkatraman Govindaraju
0b938652d3
[Sparc] Add MCInstPrinter implementation for SPARC.
...
llvm-svn: 198028
2013-12-25 23:43:39 +00:00
Alexey Samsonov
23347de6ef
[Sanitizer] Add Symbolizer::GetModuleNameAndOffsetForPC() and use it in LSan suppression matching.
...
This allows us to avoid retrieving file/line info for suppressed modules.
llvm-svn: 198025
2013-12-25 20:15:46 +00:00
Joey Gouly
9d263e0afe
Fix some indentation issues, I saw while reading this file.
...
llvm-svn: 198024
2013-12-25 19:39:08 +00:00
Alexander Potapenko
9d989d6b05
[ASan] Add a test for __asan_gen_ globals labels on Darwin.
...
Per Nick Kledzik (http://llvm.org/bugs/show_bug.cgi?id=17976 ):
"""
For MacOSX, the labels in __cstring section should be 'L' labels, and the labels
in the __const section should be non-L or 'l' labels. The later ('l') will cause
the linker to remove the label in the final executable.
"""
, so we need to ensure that the globals emitted by ASan have appropriate labels.
llvm-svn: 198022
2013-12-25 17:20:22 +00:00
Sergey Matveev
7eab734554
[lsan] Minor code health stuff.
...
- introduce logging macros
- fix incorrect vector construction
llvm-svn: 198021
2013-12-25 17:14:40 +00:00
Alexander Potapenko
cb66fe377a
[ASan] Fix the tests broken by r198018 to check for private linkage of ASan-generated globals.
...
llvm-svn: 198020
2013-12-25 17:06:04 +00:00
Simon Atanasyan
fde102cb77
[Mips] Does not take in account 'use-soft-float' attribute's value when
...
consider to generate stubs for mips16 hard-float mode.
The patch reviewed by Reed Kotler.
llvm-svn: 198019
2013-12-25 17:00:27 +00:00
Alexander Potapenko
4f0335f863
[ASan] Fix the test for __asan_gen_ globals and actually fix http://llvm.org/bugs/show_bug.cgi?id=17976
...
by setting the correct linkage (as stated in the bug).
llvm-svn: 198018
2013-12-25 16:46:27 +00:00
Alexander Potapenko
daf96ae81b
[ASan] Make sure none of the __asan_gen_ global strings end up in the symbol table, add a test.
...
This should fix http://llvm.org/bugs/show_bug.cgi?id=17976
Another test checking for the global variables' locations and prefixes on Darwin will be committed separately.
llvm-svn: 198017
2013-12-25 14:22:15 +00:00
Rui Ueyama
208915b5ea
Add a newline to an error message.
...
llvm-svn: 198016
2013-12-25 13:48:26 +00:00
Rui Ueyama
cc66ff6776
[PECOFF] Set default subsystem to the DLL header.
...
Subsystem field in the PE/COFF file header has no meanining for the DLL.
It looks like MSVC link.exe sets the default subsystem (Windows GUI) to
the field if no /subsystem option is specified.
llvm-svn: 198015
2013-12-25 13:34:31 +00:00
Alexey Samsonov
782ad0eb71
[Sanitizer] Remove now unused symbolization functionality from MemoryMappingLayout
...
llvm-svn: 198014
2013-12-25 12:11:06 +00:00
Elena Demikhovsky
371e363833
AVX-512: decoder for AVX-512, made by Alexey Bader.
...
llvm-svn: 198013
2013-12-25 11:40:51 +00:00
Alexey Samsonov
5746c07629
[Sanitizer] Use different MemoryMappingLayout::DumpListOfModules on Linux and Mac.
...
Make a unit test added in r198004 more robust.
llvm-svn: 198012
2013-12-25 11:29:19 +00:00
NAKAMURA Takumi
1b3437c69a
unittests/Support/ProcessTest.cpp: Don't use "windows.h". Use <windows.h> instead.
...
llvm-svn: 198011
2013-12-25 10:50:11 +00:00
Zoran Jovanovic
bd28c373c4
Support for microMIPS load effective address.
...
llvm-svn: 198010
2013-12-25 10:14:07 +00:00
Zoran Jovanovic
8876be39c7
Support for microMIPS FPU instructions 2.
...
llvm-svn: 198009
2013-12-25 10:09:27 +00:00
Elena Demikhovsky
b64d7e8586
AVX-512: Result type of scalar SETCC is MVT::i1 for AVX-512.
...
llvm-svn: 198008
2013-12-25 10:06:40 +00:00
Alexey Samsonov
bf658026c1
[Sanitizer] Properly specify linux-only unit test.
...
llvm-svn: 198007
2013-12-25 09:31:42 +00:00
Alexey Samsonov
ca7a213118
[Sanitizer] Don't use MemoryMappingLayout in StackTrace::PrintStack - it is now a responsibility of Symbolizer class.
...
llvm-svn: 198006
2013-12-25 09:29:54 +00:00
Alexey Samsonov
ceeb0e0657
[TSan] fix Go build
...
llvm-svn: 198005
2013-12-25 08:56:08 +00:00
Alexey Samsonov
64ffa598ce
[Sanitizer] Teach MemoryMappingLayout to dump all loaded modules.
...
Use this to implement GetListOfModules() on Mac and on Android
(on Linux we use dl_iterate_phdr).
llvm-svn: 198004
2013-12-25 08:39:38 +00:00
Alexey Samsonov
2f392d237c
[Sanitizer] Move OS-specific code for MemoryMappingLayout into separate source files.
...
llvm-svn: 198003
2013-12-25 08:01:16 +00:00
Rui Ueyama
3c849f6a06
Unbreak buildbot.
...
llvm-svn: 198002
2013-12-25 07:28:34 +00:00