Manman Ren
81dcc62805
Linker: correctly link in dbg.declare
...
Given source IR:
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !14 ), !dbg !15
we used to generate
call void @llvm.dbg.declare(metadata !27 , metadata !28 ), !dbg !29
!27 = metadata !{null}
With this patch, we will correctly generate
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !27 ), !dbg !28
Looking up %argc.addr in ValueMap will return null, since %argc.addr is already
correctly set up, we can use identity mapping.
llvm-svn: 173946
2013-01-30 17:42:15 +00:00
Eli Bendersky
2e2ce49e59
Add a special ARM trap encoding for NaCl.
...
More details in this thread: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130128/163783.html
Patch by JF Bastien
llvm-svn: 173943
2013-01-30 16:30:19 +00:00
Shankar Easwaran
e07245cdfc
hexagon targetinfo changes for getting the relocation kind from string and vice versa
...
llvm-svn: 173942
2013-01-30 16:05:43 +00:00
Logan Chien
a436e4c7e4
Add missing header and test cases for r173939.
...
llvm-svn: 173941
2013-01-30 15:48:50 +00:00
Logan Chien
2bcc42c730
Override virtual function for ARM EH directives.
...
llvm-svn: 173939
2013-01-30 15:39:04 +00:00
Shankar Easwaran
ddb122811b
simplify hexagon relocations handling
...
llvm-svn: 173938
2013-01-30 15:38:41 +00:00
Dmitri Gribenko
aa073de21a
llvm/Basic/ConvertUTF.h now exposes all functions without macro tricks
...
llvm-svn: 173937
2013-01-30 15:12:30 +00:00
Dmitri Gribenko
3c5210b2b8
LLDB uses ConvertUTF16toUTF8, remove #ifdef
...
llvm-svn: 173936
2013-01-30 15:10:12 +00:00
Dmitri Gribenko
024aa8539f
UTF conversion routines were moved from clang/Basic to llvm/Support
...
llvm-svn: 173935
2013-01-30 15:05:59 +00:00
Dmitri Gribenko
efe3038fbf
Comment parsing: fold named character references test into other HTML tests
...
llvm-svn: 173934
2013-01-30 14:44:47 +00:00
Dmitry Vyukov
00e0236665
asan/tsan: manually define FUTEX constants, because <linux/futes.h> header is broken on some linux distributions
...
llvm-svn: 173933
2013-01-30 14:39:27 +00:00
Dmitry Vyukov
087efd23d6
tsan: fix CPP_WEAK definition (it must be the other way around)
...
llvm-svn: 173932
2013-01-30 14:38:44 +00:00
Dmitri Gribenko
28800da1b3
Comment parsing: resolve more named character references
...
This reimplements r173850 with a better approach:
(1) use a TableGen-generated matcher instead of doing a linear search;
(2) avoid allocations for new strings by converting code points to string
iterals with TableGen.
llvm-svn: 173931
2013-01-30 14:29:28 +00:00
Alexey Samsonov
32832e6176
[Sanitizer] include sanitizer_common headers when building interception library
...
llvm-svn: 173930
2013-01-30 14:27:41 +00:00
Alexey Samsonov
c500132a93
[Sanitizer] Add change missed in r173926
...
llvm-svn: 173929
2013-01-30 13:19:15 +00:00
Evgeniy Stepanov
358698279d
[sanitizer] Further split private and public sanitizer headers.
...
And make msan_interface.h C-compatible.
llvm-svn: 173928
2013-01-30 13:12:08 +00:00
Dmitri Gribenko
b1c1f90314
Revert unintended change
...
llvm-svn: 173927
2013-01-30 12:40:40 +00:00
Alexey Samsonov
0d92533b29
Use LLVM_BUILD_TYPE instead of CMAKE_BUILD_TYPE in compiler-rt unit tests to match the behavior of llvm unittests
...
llvm-svn: 173926
2013-01-30 12:18:49 +00:00
Dmitri Gribenko
37bf6d9c4d
Index/special-html-characters.m: mark this as XFAIL for valgrind
...
Fix is being discussed on cfe-dev.
llvm-svn: 173925
2013-01-30 12:17:33 +00:00
Dmitri Gribenko
9feeef40f5
Move UTF conversion routines from clang/lib/Basic to llvm/lib/Support
...
This is required to use them in TableGen.
llvm-svn: 173924
2013-01-30 12:06:08 +00:00
Dmitri Gribenko
b311f4e84a
Move UTF conversion routines from clang/lib/Basic to llvm/lib/Support
...
This is required to use them in TableGen.
llvm-svn: 173923
2013-01-30 12:05:05 +00:00
Michael J. Spencer
23d23953b3
[ELF][x86-64] Add TargetLayout.
...
llvm-svn: 173922
2013-01-30 10:43:25 +00:00
Michael J. Spencer
8254185eea
Whitespace.
...
llvm-svn: 173921
2013-01-30 10:43:10 +00:00
Evgeniy Stepanov
5725e5b715
[msan] Remove an extra #ifdef.
...
__has_feature is always defined at this point.
llvm-svn: 173920
2013-01-30 09:56:11 +00:00
Daniel Jasper
21cdc848f4
Don't touch unchanged file for in-place edit.
...
This fixes llvm.org/PR15087.
llvm-svn: 173919
2013-01-30 09:52:38 +00:00
Tim Northover
da16507111
Also promote fp16 types to double when they're anonymous variadic arguments.
...
__fp16 isn't covered by the standard, but this resolves the oddity that float
gets promoted when passed variadically, but not the smaller type. This is
required by the AArch64 ABI, and a sane action elsewhere.
llvm-svn: 173918
2013-01-30 09:46:55 +00:00
Dmitry Vyukov
d6b9348bf3
tsan: introduce a helped macro CPP_WEAK (Go linker does not support weak symbols)
...
llvm-svn: 173917
2013-01-30 09:46:53 +00:00
Daniel Jasper
7b038a2381
Don't generate no-op replacements.
...
No functional changes.
llvm-svn: 173916
2013-01-30 09:46:12 +00:00
Dmitry Vyukov
5fbfafcd8c
tsan: add OnFinalize() callback for frontends
...
llvm-svn: 173915
2013-01-30 09:24:00 +00:00
Patrik Hagglund
a832ab1bfc
Documentation: Updating the data layout default specifications to
...
correspond to the code.
Patch by Stephen McGruer.
llvm-svn: 173914
2013-01-30 09:02:06 +00:00
Alexey Samsonov
a1eb11f915
[TSan] relax output tests a bit to make them pass in gcc build
...
llvm-svn: 173913
2013-01-30 08:41:57 +00:00
Michael J. Spencer
d21b72730f
[ELF] Remove ReferenceKinds.
...
llvm-svn: 173912
2013-01-30 07:46:54 +00:00
Michael J. Spencer
f35c3e434a
[ELF] Use TargetRelocationHandler to apply relocations.
...
llvm-svn: 173911
2013-01-30 07:46:31 +00:00
Alexey Samsonov
49a32c1d08
[Sanitizer] update style checker script and fix namespace style warnings
...
llvm-svn: 173910
2013-01-30 07:45:58 +00:00
Michael J. Spencer
409a737f36
[ELF] Add {Hexagon,PPC,X86}TargetHandler.
...
llvm-svn: 173909
2013-01-30 07:36:45 +00:00
Shankar Easwaran
072031a265
change the function names in RelocationHelper to adhere to convention
...
llvm-svn: 173908
2013-01-30 07:36:09 +00:00
Alexey Samsonov
c865abe747
[lit] Make GoogleTest test runner correctly discover tests in the source root
...
llvm-svn: 173907
2013-01-30 07:27:45 +00:00
Shankar Easwaran
396e4c0b13
change DefaultLayout to TargetLayout inside member variables
...
llvm-svn: 173906
2013-01-30 07:19:57 +00:00
Douglas Gregor
ed1f59701e
Add "instancetype" as a code completion result for the return type of
...
an Objective-C method. Fixes <rdar://problem/13069990>.
llvm-svn: 173905
2013-01-30 07:11:43 +00:00
Shankar Easwaran
a6f00fe083
add targethandler hooks from Writer and cleanup
...
llvm-svn: 173904
2013-01-30 07:11:43 +00:00
Douglas Gregor
41778c3fa9
The instance methods of the root class of an Objective-C hieararchy
...
can be messaged via the metaclass. Provide code completions for this
case. Fixes <rdar://problem/12560296>.
llvm-svn: 173903
2013-01-30 06:58:39 +00:00
Bill Wendling
0aed1135fc
Attempt to fix dragonegg. Use the number of slots to determine if the AttributeSet has attributes or not.
...
llvm-svn: 173902
2013-01-30 06:54:41 +00:00
Nadav Rotem
513bd8a73c
InstCombine: canonicalize sext-and --> select
...
sext-not-and --> select.
Patch by Muhammad Tauqir Ahmad.
llvm-svn: 173901
2013-01-30 06:35:22 +00:00
Richard Smith
4dab709484
C11: Provide the missing half of <stdalign.h>
...
llvm-svn: 173900
2013-01-30 06:33:54 +00:00
Richard Smith
d4cca6b2db
Fix test failure from previous change.
...
llvm-svn: 173899
2013-01-30 06:27:44 +00:00
Richard Smith
debc59d1f3
Semantic analysis and CodeGen support for C11's _Noreturn. This is modeled as
...
an attribute for consistency with our other noreturn mechanisms.
llvm-svn: 173898
2013-01-30 05:45:05 +00:00
Michael J. Spencer
457a77739b
[ELF][x86-64] Add X86_64TargetRelocationHandler and friends.
...
llvm-svn: 173897
2013-01-30 05:26:03 +00:00
Michael J. Spencer
4e9d9cd23b
[ELF] Add ELFTargetRelocationHandler.
...
llvm-svn: 173896
2013-01-30 05:25:44 +00:00
Shankar Easwaran
a51870b143
add Relocation helper functions
...
llvm-svn: 173895
2013-01-30 04:49:54 +00:00
Jason Molenda
6396922186
Fix one obvious thinko with the plugin.dynamic-loader.darwin-kernel.scan-type setting
...
handling that was probably the source of the settings problem. Need to verify that
it's working correctly tomorrow though.
llvm-svn: 173894
2013-01-30 04:48:16 +00:00