Abramo Bagnara
dff1930bf7
Fixed source range for all DeclaratorDecl's.
...
llvm-svn: 127225
2011-03-08 08:55:46 +00:00
Bill Wendling
45f470b86d
Don't show commands.
...
llvm-svn: 127224
2011-03-08 08:34:49 +00:00
John Wiegley
b4a9e51342
Removed trailing whitespace as a test commit
...
llvm-svn: 127223
2011-03-08 08:13:22 +00:00
John McCall
462c055d85
Fix my earlier commit to work with escaped newlines and leave breadcrumbs
...
in case we want to make a world where we can check intermediate instantiations
for this kind of breadcrumb.
llvm-svn: 127221
2011-03-08 07:59:04 +00:00
Nick Lewycky
afc8098c9e
Reorder comments to put them the right way around.
...
llvm-svn: 127220
2011-03-08 06:29:47 +00:00
John McCall
ed14ad24e0
objc_gc wants a pointer type, not a function type; give it a more appropriate
...
diagnostic. Also, these attributes are commonly written with macros which we
actually pre-define, so instead of expanding the macro location, refer to the
instantiation location and name it using the macro loc.
llvm-svn: 127219
2011-03-08 04:17:03 +00:00
Stephen Wilson
d126c8cc5a
Fix ObjectFileElf::GetEntryPointAddress()
...
ELF object files do not implicitly have a symbol named "start" as an entry
point. For example, on Linux it is often named "_start", but can be trivially
set to any symbol by passing an --entry argument to the linker.
Use the ELF header to determine the entry point and resolve the associated
section based on that address.
Also, update the linux dynamic loader to call GetEntryPointAddress instead of
GetEntryPoint.
llvm-svn: 127218
2011-03-08 04:12:15 +00:00
John McCall
97c250405b
Update the check for a NULL macro to use Preprocessor::getSpelling().
...
llvm-svn: 127217
2011-03-08 04:07:54 +00:00
John McCall
cff9bcfbd3
Add an API call to retrieve the spelling data of a token from its SourceLocation.
...
llvm-svn: 127216
2011-03-08 04:06:57 +00:00
Stephen Wilson
8f0daa28d4
Add Makefile support for the new DynamicLoaderStatic plugin.
...
llvm-svn: 127215
2011-03-08 03:57:00 +00:00
Devang Patel
97d0be8ee1
While sinking an instruction, do not lose llvm.dbg.value intrinsic.
...
llvm-svn: 127214
2011-03-08 03:06:19 +00:00
Bill Wendling
1d5532a0d5
Change the next release number to 3.0svn.
...
llvm-svn: 127213
2011-03-08 03:00:02 +00:00
Bill Wendling
a259686db1
A few more tests for instruction encodings.
...
llvm-svn: 127209
2011-03-08 02:51:48 +00:00
Eric Christopher
eb19e9e9fc
Turn on list-ilp scheduling by default on x86 and x86-64, fix up
...
testcases accordingly. Some are currently xfailed and will be filed
as bugs to be fixed or understood.
Performance results:
roughly neutral on SPEC
some micro benchmarks in the llvm suite are up between 100 and 150%, only
a pair of regressions that are due to be investigated
john-the-ripper saw:
10% improvement in traditional DES
8% improvement in BSDI DES
59% improvement in FreeBSD MD5
67% improvement in OpenBSD Blowfish
14% improvement in LM DES
Small compile time impact.
llvm-svn: 127208
2011-03-08 02:42:25 +00:00
Douglas Gregor
6203d49b0e
Detect attempts to provide a specialization of a function within a
...
dependent scope and produce an error (rather than crashing). Fixes PR8979.
llvm-svn: 127206
2011-03-08 02:04:14 +00:00
Jim Ingham
bd3f260698
I didn't notice there was already an ObjectFile::GetEntryPoint. Move that over to GetEntryPointAddress 'cause that's more consistent with other functions in ObjectFile, do the mutatis mutandi and also in the ELF case I return a section offset address rather than a bare load address.
...
llvm-svn: 127205
2011-03-08 01:54:01 +00:00
Andrew Trick
52b3e38a1f
Further improvements to pre-RA-sched=list-ilp.
...
This change uses the MaxReorderWindow for both height and depth, which
tends to limit the negative effects of high register pressure.
llvm-svn: 127203
2011-03-08 01:51:56 +00:00
Jim Ingham
5ca40258ea
Reverting the part of the debug-in-ofile patch from earlier today that removes them from the shared module list. That was causing a bunch of asserts. Greg is working on a better fix.
...
llvm-svn: 127201
2011-03-08 01:49:10 +00:00
Bob Wilson
45acbd03db
Fix a compiler crash where a Glue value had multiple uses. Radar 9049552.
...
llvm-svn: 127198
2011-03-08 01:17:20 +00:00
Bob Wilson
70bd363517
Fix comment typos.
...
llvm-svn: 127197
2011-03-08 01:17:16 +00:00
Jim Ingham
672e6f59c5
Add a method "GetEntryPoint" to the ObjectFile class, and implement it on MachO & ELF - though the ELF implementation is probably a little weak. Then use this method in place of directly looking for "start" in the ThreadPlanCallFunction constructor to find the stopping point for our function evaluation.
...
llvm-svn: 127194
2011-03-07 23:44:08 +00:00
Bill Wendling
77ad1dc56d
Rename the narrow shift right immediate operands to "shr_imm*" operands. Also
...
expand the testing of the narrowing shift right instructions.
No functionality change.
llvm-svn: 127193
2011-03-07 23:38:41 +00:00
Jakob Stoklund Olesen
71c380f6c7
Let shrinkToUses optionally return a list of now dead machine instructions.
...
llvm-svn: 127192
2011-03-07 23:29:10 +00:00
Caroline Tice
6258c53e12
Add thread state initialization to the thread where the interactive
...
interpreter is run (which is separate from the thread where
Py_Initialize is called, where this normally gets set up).
llvm-svn: 127191
2011-03-07 23:24:28 +00:00
Carl Norum
58d489fc6e
Fix tests to account for new warning "expected ';' at end of declaration list". Sorry, folks!
...
llvm-svn: 127188
2011-03-07 22:57:45 +00:00
Eric Christopher
ac546dc62e
Typos.
...
llvm-svn: 127186
2011-03-07 22:48:16 +00:00
Bill Wendling
ec9d2633f1
When we adjust the inline ASM type, we need to take into account an early
...
clobber with the 'y' constraint. Otherwise, we get the wrong return type and an
assert, because it created a '<1 x i64>' vector type instead of the x86_mmx
type.
llvm-svn: 127185
2011-03-07 22:47:14 +00:00
Johnny Chen
d648135902
Add an extra twist of stopping the inferior in a breakpoint, and then continue till it's done.
...
We should still see the entire stdout redirected once the process is finished.
llvm-svn: 127184
2011-03-07 22:46:30 +00:00
Argyrios Kyrtzidis
bc1f48f654
Allow passing '-###' to ASTUnit::LoadFromCommandLine to print out the cc1 options.
...
llvm-svn: 127183
2011-03-07 22:45:01 +00:00
Devang Patel
d00c628f8f
Preserve line no. info.
...
Radar 9097659
llvm-svn: 127182
2011-03-07 22:43:45 +00:00
Jakob Stoklund Olesen
27f942fa60
Make the UselessRegs argument optional in the LiveRangeEdit constructor.
...
llvm-svn: 127181
2011-03-07 22:42:16 +00:00
Johnny Chen
75625aa118
Add test cases for SBTarget.Launch() API with the stdout of the inferior redirected to a file.
...
llvm-svn: 127179
2011-03-07 22:29:04 +00:00
Carl Norum
a367d80763
Change diagnostic message from "Extension" to "ExtWarn" to find more problems with missing semicolons.
...
llvm-svn: 127177
2011-03-07 22:19:06 +00:00
Ted Kremenek
897947434e
Fix null dereference in CFGBlock::FilterEdge that was reported in PR 9412.
...
llvm-svn: 127176
2011-03-07 22:04:39 +00:00
Cameron Zwarich
df61694417
Move getRegPressureLimit() from TargetLoweringInfo to TargetRegisterInfo.
...
llvm-svn: 127175
2011-03-07 21:56:36 +00:00
Devang Patel
6e40c61596
CodeGenFunction::GenerateBlockFunction() should initialize DebugInfo just like CodeGenFunction::GenerateCode()
...
llvm-svn: 127174
2011-03-07 21:53:18 +00:00
Johnny Chen
2f6f7ba879
Add TestThreadAPI.py file to house the Python SBThread API test cases.
...
Currently it has only test cases for SBThread.GetStopDescription() API.
Also modified lldb.swig to add typemap for (char *dst, size_t dst_len)
which occurs for SBThread::GetStopDescription() C++ API. For Python
scripting:
# Due to the typemap magic (see lldb.swig), we pass in an (int)length to GetStopDescription
# and expect to get a Python string as the result object!
# The 100 is just an arbitrary number specifying the buffer size.
stop_description = thread.GetStopDescription(100)
llvm-svn: 127173
2011-03-07 21:28:57 +00:00
Rafael Espindola
15a29867ed
Add test for r127138.
...
llvm-svn: 127172
2011-03-07 21:28:14 +00:00
Argyrios Kyrtzidis
7e25a95600
g++ is more permissive regarding flexible arrays.
...
It will accept flexible array in union and also as the sole element of a struct/class.
Fixes rdar://9065507.
llvm-svn: 127171
2011-03-07 20:04:04 +00:00
Duncan Sands
e5d7369e1e
Often GCC can see that NumBuckets is zero here, resulting in a warning
...
about possibly swapped memset parameters. Avoid the warning.
llvm-svn: 127170
2011-03-07 19:38:38 +00:00
Jim Grosbach
e9fdc06fec
Tidy up.
...
llvm-svn: 127169
2011-03-07 19:28:43 +00:00
Jakob Stoklund Olesen
ac32d8a691
Handle the special case of registers begin redefined by early-clobber defs.
...
In this case, the value need to be available at the load index instead of the
normal use index.
llvm-svn: 127167
2011-03-07 18:56:16 +00:00
Greg Clayton
0bb165a7a7
Don't cache .o files in the debug map + DWARF in .o files. If we cache them
...
then we end up using older .o files with out of date section remappings if
we debug, compile + fix, and debug again.
llvm-svn: 127166
2011-03-07 18:51:54 +00:00
Devang Patel
d6ffebb077
DebugInfo can be enabled or disabled at function level (e.g. using an attribute). However, at module level it is determined by command line option and the state of command line option does not change during compilation. Make this layering explicit and fix accidental cases where the code generator was checking whether module has debug info enabled instead of checking whether debug info is enabled for this function or not.
...
llvm-svn: 127165
2011-03-07 18:45:56 +00:00
Devang Patel
e65982c8c8
Do not emit stop point for CXXDefaultArgExpr. It results in suboptimial user experience.
...
21 int main() {
22 A a;
For example, here user would expect to stop at line 22, even if A's constructor leads to a call through CXXDefaultArgExpr.
This fixes ostream-defined.exp regression from gdb testsuite.
llvm-svn: 127164
2011-03-07 18:29:53 +00:00
Owen Anderson
cd526fa15e
Use the correct LHS type when determining the legalization of a shift's RHS type.
...
llvm-svn: 127163
2011-03-07 18:29:47 +00:00
Douglas Gregor
db44611f2e
Support explicit template specialization and instantiation for members
...
of a C++0x inline namespace within enclosing namespaces, as noted in
C++0x [namespace.def]p8.
Fixes <rdar://problem/9006349>, a libc++ failure where Clang was
rejected an explicit specialization of std::swap (since libc++ puts it
into an inline, versioned namespace std::__1).
llvm-svn: 127162
2011-03-07 16:54:27 +00:00
Douglas Gregor
11ddf1361d
When rebuilding a dependent template specialization type to another
...
dependent template specialization type, make sure to set the keyword
location. Fixes some valgrind issues introduced in r127150.
llvm-svn: 127159
2011-03-07 15:13:34 +00:00
Justin Holewinski
0cfa737f27
ptx: Fix calling convention printing in AsmWriter.cpp
...
This allows LLVM IR using ptx_kernel or ptx_device calling
conventions to be properly printed when emitted in text form.
llvm-svn: 127157
2011-03-07 14:32:30 +00:00
Duncan Sands
2769c6e0dc
Clarify that the result of an srem is only guaranteed to have the same sign as the
...
left-hand-side if the result is non-zero.
llvm-svn: 127156
2011-03-07 09:12:24 +00:00