Johnny Chen
d545d9cbbc
Make the test case more robust by installing a teardown hook to kill the inferior
...
rather than calling "process kill" explicitly at the end of the test.
The test might not even reach the end because it could have failed prematurely.
llvm-svn: 129963
2011-04-22 00:33:09 +00:00
Johnny Chen
13af1b55cd
Conditionalize the self.expect("dis -f", ...) test scenario to check on Intel disassembly
...
only when the test is currently running against the relevant architecture.
llvm-svn: 129960
2011-04-22 00:13:28 +00:00
Rafael Espindola
5395f44fe8
Compute the size of the FDE encoding instead of hard coding it. Update
...
X8664_ELFTargetObjectFile::getFDEEncoding to match reality.
llvm-svn: 129959
2011-04-22 00:08:43 +00:00
Nick Lewycky
207bce31e1
Wire up the -ftest-coverage and -fprofile-arcs flags to .gcno file emission (at
...
compile time) and .gcda emission (at runtime). --coverage enables both.
This does not yet add the profile_rt library to the link step if -fprofile-arcs
is enabled when linking.
llvm-svn: 129956
2011-04-21 23:44:07 +00:00
Rafael Espindola
6aea59268a
Remove unused argument.
...
llvm-svn: 129955
2011-04-21 23:39:26 +00:00
Nick Lewycky
ab18d3088a
Fix indentation. No functional change.
...
llvm-svn: 129954
2011-04-21 23:37:32 +00:00
Rafael Espindola
ea61f22dd3
Don't pass address spaces to EmitULEB128IntValue.
...
llvm-svn: 129953
2011-04-21 23:26:40 +00:00
Devang Patel
94ad6ac13c
Fix DWARF description of Q registers.
...
llvm-svn: 129952
2011-04-21 23:22:35 +00:00
Argyrios Kyrtzidis
b77d6f0fd1
Don't hide #warnings in a system header, same as gcc. Fixes rdar://8495837.
...
llvm-svn: 129951
2011-04-21 23:08:23 +00:00
Argyrios Kyrtzidis
8a8b8773b6
Move the check whether a diagnostic must be ignored because it is in a system header
...
inside DiagnosticIDs::getDiagnosticLevel.
llvm-svn: 129950
2011-04-21 23:08:18 +00:00
Johnny Chen
9ee96e7b40
Add a HideStdout() method to our TestBase class and call it from TestAbbreviations.py
...
and TestAliases.py. Pass the keyword argument 'check=False' to:
self.runCmd("script my.date()", check=False)
since we want to restore sys.stdout no matter what the outcome of the runCmd is.
llvm-svn: 129949
2011-04-21 22:50:23 +00:00
Richard Smith
d4257d847e
Fix gcc warning. Add parens to this assert, incidentally reassociating it, but the condition is the same either way.
...
llvm-svn: 129948
2011-04-21 22:48:40 +00:00
Devang Patel
3712c14be9
Fix DWARF description of S registers.
...
llvm-svn: 129947
2011-04-21 22:48:26 +00:00
Devang Patel
6d1e4e9646
Add DW_OP_bit_piece.
...
llvm-svn: 129945
2011-04-21 22:26:13 +00:00
Eric Christopher
fca8b75b71
Make sure we include __sync_synchronize on arm platforms if we need it.
...
llvm-svn: 129944
2011-04-21 22:05:05 +00:00
Richard Trieu
2c850c0980
Add a fixit suggest for missing case keywords inside a switch scope. For instance, in the following code, 'case ' will be suggested before the '1:'
...
switch (x) {
1: return 0;
default: return 1;
}
llvm-svn: 129943
2011-04-21 21:44:26 +00:00
Greg Clayton
2048ea5eba
Fixed a case where if a function, inlined function, or global with a mangled
...
name had a DW_AT_name that was the same string as the DW_AT_MIPS_linkage_name,
then it would get added twice to the DWARF index.
llvm-svn: 129942
2011-04-21 21:41:13 +00:00
Nick Lewycky
ed7504e65c
Alphabetize this one flag, just to pull it out of my patch.
...
llvm-svn: 129941
2011-04-21 21:32:34 +00:00
Daniel Dunbar
bbd482226e
Driver/Darwin: Allow OS X deployment targets like 10.4.11, even though they
...
can't be represented in the environment define.
llvm-svn: 129939
2011-04-21 21:27:33 +00:00
Devang Patel
2266aa84a1
Refactor.
...
llvm-svn: 129938
2011-04-21 21:07:35 +00:00
Johnny Chen
72c40825dd
Hopefully fix the last fallout of 'commands' to 'command' change.
...
llvm-svn: 129937
2011-04-21 20:55:57 +00:00
Johnny Chen
71aaf75e3d
Use self.TraceOn() API.
...
llvm-svn: 129936
2011-04-21 20:48:32 +00:00
Johnny Chen
ea80ba8b97
Use self.TraceOn() API to decide whether to print debug output.
...
llvm-svn: 129935
2011-04-21 20:27:45 +00:00
Devang Patel
be22131c28
Test case for r129922
...
llvm-svn: 129934
2011-04-21 20:16:43 +00:00
Argyrios Kyrtzidis
446bcf2d4a
Use the ArrayFiller to fill out "holes" in the array initializer due to designated initializers,
...
avoiding to create separate Exprs for each one.
llvm-svn: 129933
2011-04-21 20:03:38 +00:00
Jay Foad
5514afe6b2
PR9214: Convert Metadata API to use ArrayRef.
...
llvm-svn: 129932
2011-04-21 19:59:31 +00:00
Jay Foad
ea324f154b
PR9214: Convert Metadata API to use ArrayRef.
...
llvm-svn: 129929
2011-04-21 19:59:12 +00:00
Matt Beaumont-Gay
70597d4e50
Don't recycle loop variables.
...
llvm-svn: 129928
2011-04-21 19:46:23 +00:00
Greg Clayton
020b717f6a
More iteration on the new option value stuff. We now define an
...
OptionValueCollection class that can be subclassed to provide access to
internal settings that are stored as ObjectValue subclasses.
llvm-svn: 129926
2011-04-21 19:21:29 +00:00
Jakob Stoklund Olesen
6a663b8dc8
Allow allocatable ranges from global live range splitting to be split again.
...
These intervals are allocatable immediately after splitting, but they may be
evicted because of later splitting. This is rare, but when it happens they
should be split again.
The remainder intervals that cannot be allocated after splitting still move
directly to spilling.
SplitEditor::finish can optionally provide a mapping from new live intervals
back to the original interval indexes returned by openIntv().
Each original interval index can map to multiple new intervals after connected
components have been separated. Dead code elimination may also add existing
intervals to the list.
The reverse mapping allows the SplitEditor client to treat the new intervals
differently depending on the split region they came from.
llvm-svn: 129925
2011-04-21 18:38:15 +00:00
Manuel Klimek
d861e8b7be
Adds a function to run FrontendActions over in-memory code. This is
...
the first step towards a standalone Clang tool infrastructure.
The plan is to make it easy to build command line tools that run over
the AST of source files in a project outside of the build system.
llvm-svn: 129924
2011-04-21 18:37:41 +00:00
Rafael Espindola
c3dc486752
Fix relative relocations. This is sufficient for running the rust testsuite with
...
MC :-)
llvm-svn: 129923
2011-04-21 18:36:50 +00:00
Devang Patel
46bda61a81
As per ARM docs, register Dx is described as DW_OP_regx(256+x) in DWARF.
...
llvm-svn: 129922
2011-04-21 17:51:06 +00:00
Devang Patel
28f2719d83
Add comment in output stream.
...
llvm-svn: 129921
2011-04-21 17:50:24 +00:00
Greg Clayton
9524f25b0f
Made the constructors public for all OptionValue classes
...
so we can instantiate them, and also moved the code that
can get the specific subclass for a OptionValue into the
OptionValue class.
llvm-svn: 129920
2011-04-21 17:46:10 +00:00
Daniel Dunbar
5a784c8ed1
Driver: Tweak -Xarch diags a bit more, we can't actually differentiate between
...
unknown and "required more arguments", but only the latter should be feasible in
practice.
llvm-svn: 129919
2011-04-21 17:41:34 +00:00
Daniel Dunbar
6914a98ccd
Driver: Improve -Xarch argument diagnostics a bit.
...
llvm-svn: 129918
2011-04-21 17:32:21 +00:00
Argyrios Kyrtzidis
1f329402ae
Fixit suggestion for adding missing tag name should have a space after the tag name. Fixes rdar://9295072
...
llvm-svn: 129917
2011-04-21 17:29:47 +00:00
Argyrios Kyrtzidis
99fbd4d1d8
Have #pragma message not turn into error by -Werror, by default. Fixes rdar://9308989.
...
llvm-svn: 129916
2011-04-21 17:11:44 +00:00
Daniel Dunbar
6309828206
Revert r1296656, "Fix rdar://9289512 - not folding load into compare at -O0...",
...
which broke a couple GCC test suite tests at -O0.
llvm-svn: 129914
2011-04-21 16:14:46 +00:00
Justin Holewinski
d74d88a861
PTX: Expand useable register space
...
llvm-svn: 129913
2011-04-21 16:08:02 +00:00
Howard Hinnant
9d06c8c326
http://llvm.org/bugs/show_bug.cgi?id=9765
...
llvm-svn: 129910
2011-04-21 14:29:59 +00:00
Che-Liang Chiou
14c48e5d66
ptx: fix parameter ordering
...
This patch depends on the prior fix r129908 that changes to use std::find,
rather than std::binary_search, on unordered array.
Patch by Dan Bailey
llvm-svn: 129909
2011-04-21 10:56:58 +00:00
Che-Liang Chiou
cdc51569ee
ptx: PTXMachineFunctionInfo no longer sort registers and so should not use std::binary_search
...
llvm-svn: 129908
2011-04-21 10:16:20 +00:00
Eli Friedman
4547752402
PR9772: Fix the definition of WINT_MIN and WINT_MAX on Linux -ffreestanding.
...
llvm-svn: 129907
2011-04-21 05:45:45 +00:00
Jakob Stoklund Olesen
6b3396fbd2
Don't allow per-register spill size and alignment.
...
These values were not used for anything. Spill size and alignment is a property
of the register class, not the register.
llvm-svn: 129906
2011-04-21 03:43:21 +00:00
Nick Lewycky
8411b5511e
In gcov profiling, give all functions an extra unified return block. This is
...
necessary since gcov counts transitions between blocks. It can't see if you've
run every line in a straight-line function, so we add an edge for it to notice.
llvm-svn: 129905
2011-04-21 03:18:00 +00:00
Nick Lewycky
ed749d8c94
Fix think-o: emit all 8 bytes of the EOF marker. Also reflow a line in a
...
comment for 80 columns.
llvm-svn: 129904
2011-04-21 02:48:39 +00:00
Nick Lewycky
8e0a38f88a
Add independent controls for whether GCOV profiling should emit .gcno files or
...
instrument the program to emit .gcda.
TODO: we should emit slightly different .gcda files when .gcno emission is off.
llvm-svn: 129903
2011-04-21 01:56:25 +00:00
Nick Lewycky
364c04ae01
Fix typo in comment.
...
llvm-svn: 129902
2011-04-21 01:54:08 +00:00