David Blaikie
cebc623798
Migrate dbg-arg.ll to a C file test to be resilient to IR changes.
...
llvm-svn: 176964
2013-03-13 18:46:28 +00:00
Manman Ren
11fec384de
No functionality change. Use unreachable in getCUOffset.
...
llvm-svn: 176963
2013-03-13 18:41:27 +00:00
Manman Ren
723956fe1a
No functionality change. Use unreachable in getCompileUnit.
...
llvm-svn: 176962
2013-03-13 18:33:41 +00:00
Greg Clayton
e4ca515ae1
<rdar://problem/13404189>
...
Made the "--reverse" option to "source list" also be able to use the "--count". This helps us implement support for regexp source list command:
(lldb) l -10
Which gets turned into:
(lldb) source list --reverse --count 10
Also simplified the code that is used to track showing more source from the last file and line.
llvm-svn: 176961
2013-03-13 18:25:49 +00:00
Greg Clayton
682b60e4b4
<rdar://problem/13396207>
...
Added logging that will show up in the system console when we try to resume a process that is already running, or has an unexpected state.
llvm-svn: 176960
2013-03-13 18:23:44 +00:00
Jakob Stoklund Olesen
c1b566db1b
Check register classes also when changing them.
...
We have the same assertion in createVirtualRegister.
llvm-svn: 176959
2013-03-13 18:11:17 +00:00
Jim Ingham
17d023f6ac
Add a target setting (target.use-fast-stepping) to control using the "run to next branch" stepping algorithm.
...
llvm-svn: 176958
2013-03-13 17:58:04 +00:00
Daniel Jasper
8a68b95d9e
Fix incorrect cast identification.
...
Before: int a = sizeof(int *)+ b;"
After: int a = sizeof(int *) + b;
llvm-svn: 176957
2013-03-13 17:13:53 +00:00
Anton Yartsev
6c2af43991
[analyzer] fixed the logic changed by r176949
...
llvm-svn: 176956
2013-03-13 17:07:32 +00:00
Arnold Schwaighofer
9f2e0fa52e
ARM cost model: Add test case to make sure we would notice a change in CodeGen
...
In r176898 I updated the cost model to reflect the fact that sext/zext/cast on
v8i32 <-> v8i8 and v16i32 <-> v16i8 are expensive.
This test case is so that we make sure to update the cost model once we fix
CodeGen.
llvm-svn: 176955
2013-03-13 16:25:55 +00:00
Adrian Prantl
572f8dfea0
relax check to allow for attributes (fix buildbot for elf-ppc64)
...
llvm-svn: 176954
2013-03-13 16:14:44 +00:00
Daniel Jasper
0f8ed9e4e1
Fix comment indentation before labels.
...
Before:
switch (x) {
// if 1, do f()
case 1:
f();
}
After:
switch (x) {
// if 1, do f()
case 1:
f();
}
llvm-svn: 176953
2013-03-13 15:53:12 +00:00
Daniel Jasper
8f6ae19129
Fix formatting issue with builder-type calls.
...
Before:
->aaaaaa()->aaaaaaaaaaa(aaaaaaaa()->aaaaaa()->aaaaa() - aaaaaaaaa()->aaaaaa()
->aaaaa());
After:
a->aaaaaa()->aaaaaaaaaaa(aaaaaaaa()->aaaaaa()->aaaaa() -
aaaaaaaaa()->aaaaaa()->aaaaa());
llvm-svn: 176952
2013-03-13 15:37:48 +00:00
Alexander Kornienko
62b85b9610
Added AnnotatedToken::isOneOf + a few other refactorings
...
Summary: <subj>
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D536
llvm-svn: 176951
2013-03-13 14:41:29 +00:00
Arnaud A. de Grandmaison
7153305b92
Fix a performance regression when combining to smaller types in icmp (shl %v, C1), C2 :
...
Only combine when the shl is only used by the icmp
llvm-svn: 176950
2013-03-13 14:40:37 +00:00
Anton Yartsev
59ed15b052
Refactoring:
...
+ Individual Report* method for each bug type
+ Comment improved: missing non-trivial alloca() case annotated
+ 'range' parameter of ReportBadFree() capitalized
+ 'SymbolRef Sym = State->getSVal(A, C.getLocationContext()).getAsSymbol();' shorten to 'SymbolRef Sym = C.getSVal(A).getAsSymbol();'
llvm-svn: 176949
2013-03-13 14:39:10 +00:00
Dmitri Gribenko
3605f319dd
Documentation: formatting fixes
...
llvm-svn: 176948
2013-03-13 14:26:35 +00:00
Reid Kleckner
2325273641
[msan] Clean up extensions during msandr shutdown
...
Otherwise debug DynamoRIO complains at us for leaking memory.
llvm-svn: 176947
2013-03-13 13:59:09 +00:00
Benjamin Kramer
dfbcba5ae0
Add one more overload to make VS2008's debug mody happy.
...
sigh.
llvm-svn: 176946
2013-03-13 13:50:47 +00:00
Edwin Vane
2e9b174da6
Reverting r176944 until Author fixes test failure.
...
llvm-svn: 176945
2013-03-13 13:48:47 +00:00
Edwin Vane
666f6b6de7
ClangTool output cleanup
...
Information messages sent to stdout by ClangTool now only happen when the -debug
flag is set.
Error messages that used to go to stdout now go to stderr.
Author: Ariel J Bernal <ariel.j.bernal@intel.com>
llvm-svn: 176944
2013-03-13 13:36:56 +00:00
Evgeniy Stepanov
96f82f8ac3
[sanitizer] Fix lint.
...
llvm-svn: 176943
2013-03-13 10:20:35 +00:00
Evgeniy Stepanov
eeabe82762
Add llvm-symbolizer as test dependency.
...
It is required when building tests with ASan or MSan.
llvm-svn: 176942
2013-03-13 09:36:02 +00:00
Evgeniy Stepanov
3aa627b09d
Add llvm-symbolizer as test dependency.
...
It is required when building tests with ASan or MSan.
llvm-svn: 176941
2013-03-13 09:35:18 +00:00
Alexey Samsonov
d7ab381f53
[Sanitizer] Build ASan, TSan and MSan runtimes with -fno-rtti.
...
llvm-svn: 176940
2013-03-13 09:18:30 +00:00
Evgeniy Stepanov
98f5ea0dba
[msan] Increase stack size as required.
...
Adjust stack size in pthread_attr_t when the app-requested size does not fit MSan TLS.
llvm-svn: 176939
2013-03-13 09:01:40 +00:00
Evgeniy Stepanov
5697b58ec4
[sanitizer] Move GetTlsSize code from TSan to sanitizer_common.
...
llvm-svn: 176938
2013-03-13 08:19:53 +00:00
Evgeniy Stepanov
24aad9c0cb
Break a >80 char line.
...
llvm-svn: 176937
2013-03-13 08:17:39 +00:00
Daniel Jasper
97b894849e
Fix formatting of new arrays of pointers.
...
Before:
A = new SomeType * [Length];
A = new SomeType *[Length]();
After:
A = new SomeType *[Length];
A = new SomeType *[Length]();
Small formatting cleanups with clang-format.
llvm-svn: 176936
2013-03-13 07:49:51 +00:00
Alexey Samsonov
91f833a413
[Sanitizer] Fixup for r176931 for Mac and Windows
...
llvm-svn: 176935
2013-03-13 07:39:25 +00:00
Evgeniy Stepanov
05826ed8a0
Set symbolizer path in the test environment.
...
This is needed to get symbolized stack traces when running Clang tests under (A|M)San.
llvm-svn: 176934
2013-03-13 07:10:36 +00:00
Evgeniy Stepanov
e9c2d3f950
Set symbolizer path in the test environment.
...
This is needed to get symbolized stack traces when running LLVM tests under (A|M)San.
llvm-svn: 176933
2013-03-13 06:58:09 +00:00
Alexey Samsonov
d38aceda4e
[Sanitizer] Fix a typo in function name
...
llvm-svn: 176932
2013-03-13 06:55:02 +00:00
Alexey Samsonov
06d3aa4884
[Sanitizer] Change MemoryMappingLayout methods to also report memory protection flags (for future use in leak checker). Patch by Sergey Matveev.
...
llvm-svn: 176931
2013-03-13 06:51:02 +00:00
NAKAMURA Takumi
4be6c00cee
lit.TestFormats.GoogleTest: Honor LitConfig.noExecute, or --no-execute were ignored.
...
llvm-svn: 176930
2013-03-13 06:16:33 +00:00
John McCall
4d31b812ad
Remove trailing comma in enum list.
...
llvm-svn: 176926
2013-03-13 05:02:21 +00:00
Shankar Easwaran
8c25685be7
[Pass][Layout] Add extra debugging information
...
llvm-svn: 176925
2013-03-13 04:05:38 +00:00
John McCall
cdda29c968
Tighten up the rules for precise lifetime and document
...
the requirements on the ARC optimizer.
rdar://13407451
llvm-svn: 176924
2013-03-13 03:10:54 +00:00
Jim Ingham
0c61dee1b9
The step by running from branch to branch pretty much works with this checkin (at least for x86_64) but is still
...
turned off, it needs more qualification. If you want to play with it, change the initialization of m_use_fast_step
to true.
llvm-svn: 176923
2013-03-13 01:56:41 +00:00
Jim Ingham
32ce20c5ee
DoesBranch needs to compute the instruction if it isn't already done.
...
Handle the "alternate_isa" correctly.
llvm-svn: 176922
2013-03-13 01:55:16 +00:00
Jim Ingham
d19444c48b
More cleanup, remove an untrue comment.
...
llvm-svn: 176921
2013-03-13 01:53:26 +00:00
Jim Ingham
5bb7e1e11f
Remove an unused #include.
...
llvm-svn: 176920
2013-03-13 01:52:33 +00:00
Jim Ingham
9026dee92e
Don't use the fact that we stopped with a "Breakpoint" stop reason to decide to step over the breakpoint. It's
...
better to check directly whether there is a breakpoint site at the PC.
llvm-svn: 176919
2013-03-13 01:52:09 +00:00
Jim Ingham
199e4f7dc5
Add a missing check for getting a NULL oso module back from GetModuleByCompUnitInfo.
...
llvm-svn: 176918
2013-03-13 01:34:14 +00:00
Akira Hatanaka
96ca182904
[mips] Define two subclasses of MipsTargetLowering. Mips16TargetLowering is for
...
mips16 and MipsSETargetLowering is for mips32/64.
No functionality changes.
llvm-svn: 176917
2013-03-13 00:54:29 +00:00
Michael J. Spencer
c4e45f855c
[ELF][Writer] Let std::vector handle allocating space instead of reserving tiny portions.
...
llvm-svn: 176916
2013-03-13 00:30:08 +00:00
Jason Molenda
1ad66dbae4
Various fixes for armv7 floating point/vector register support.
...
Drop the old f registers from debugserver's register list. Add the
NEON 128-bit q registers to debugserver, support reading and writing.
Add the new contains / invalidates mappings for the s, d, and q
registers so lldb will know what registers overlay what other registers.
Change the default format of s and d registers to be floating point
instead of hex. Remove some UTF-8 hyphen chars in comments in the ARM
register number definition headers.
<rdar://problem/13121797>
llvm-svn: 176915
2013-03-13 00:14:30 +00:00
Jim Ingham
1b57d17e42
Add a missing call to GetFileRangeMap. It's absence was causing debug info from .o files to sometimes
...
not get processed.
<rdar://problem/13406310>
llvm-svn: 176914
2013-03-13 00:07:18 +00:00
David Blaikie
1ca2f36289
Refactor filename/directory in DICompileUnit into a DIFile
...
This is the next step towards making the metadata for DIScopes have a common
prefix rather than having to delegate based on their tag type.
llvm-svn: 176913
2013-03-13 00:01:35 +00:00
Matt Beaumont-Gay
dcd053e46d
Test for LLVM r176911
...
llvm-svn: 176912
2013-03-12 23:56:16 +00:00