platform/upstream/llvm.git
11 years agoFix C++ constructor/destructor tests when run on ARM
Stephen Lin [Tue, 18 Jun 2013 20:24:04 +0000 (20:24 +0000)]
Fix C++ constructor/destructor tests when run on ARM

llvm-svn: 184225

11 years agoChange the arm assembler to support this from the v7c spec:
Kevin Enderby [Tue, 18 Jun 2013 20:19:24 +0000 (20:19 +0000)]
Change the arm assembler to support this from the v7c spec:
"When assembling to the ARM instruction set, the .N qualifier produces
an assembler error and the .W qualifier has no effect."

In the pre-matcher handler in the asm parser the ".w" (wide) qualifier
when in ARM mode is now discarded. And an error message is now
produced when the ".n" (narrow) qualifier is used in ARM mode.

Test cases for these were added.

rdar://14064574

llvm-svn: 184224

11 years agoDR14, DR101, and part of DR1: fix handling of extern "C" declarations in
Richard Smith [Tue, 18 Jun 2013 20:15:12 +0000 (20:15 +0000)]
DR14, DR101, and part of DR1: fix handling of extern "C" declarations in
namespaces, by treating them just like we treat extern "C" declarations in
function scope.

llvm-svn: 184223

11 years agoDuring SelectionDAG building explicitly set a node to constant zero when the
Quentin Colombet [Tue, 18 Jun 2013 20:14:39 +0000 (20:14 +0000)]
During SelectionDAG building explicitly set a node to constant zero when the
value is zero.
This allows optmizations to kick in more easily.
Fix some test cases so that they remain meaningful (i.e., not completely dead
coded) when optimizations apply.

<rdar://problem/14096009> superfluous multiply by high part of zero-extended
value.

llvm-svn: 184222

11 years agoFixed a typo and naming convention.
John Thompson [Tue, 18 Jun 2013 19:56:05 +0000 (19:56 +0000)]
Fixed a typo and naming convention.

llvm-svn: 184221

11 years agoMips ELF: Mark object file as ABI compliant
Jack Carter [Tue, 18 Jun 2013 19:47:15 +0000 (19:47 +0000)]
Mips ELF: Mark object file as ABI compliant

When producing objects that are abi compliant we are
marking neither the object file nor the assembly file
correctly and thus generate warnings.

We need to set the EF_CPIC flag in the ELF header when
generating direct object.

Note that the warning is only generated when compiling without PIC.

When compiling with clang the warning will be suppressed by supplying:

 -Wa,-mno-shared -Wa,-call_nonpic

Also the following directive should also be added:

.option pic0

when compiling without PIC,  This eliminates the need for supplying:

  -mno-shared -call_nonpic

on the assembler command line.

Patch by Douglas Gilmore

llvm-svn: 184220

11 years agoRemove uniqueID from PathV1.h.
Rafael Espindola [Tue, 18 Jun 2013 19:46:19 +0000 (19:46 +0000)]
Remove uniqueID from PathV1.h.

llvm-svn: 184219

11 years agoUse llvm::sys::fs::GetUniqueID.
Rafael Espindola [Tue, 18 Jun 2013 19:40:07 +0000 (19:40 +0000)]
Use llvm::sys::fs::GetUniqueID.

llvm-svn: 184218

11 years agoAdd a GetUniqueID that will replace the uniqueID of PathV1.h.
Rafael Espindola [Tue, 18 Jun 2013 19:34:49 +0000 (19:34 +0000)]
Add a GetUniqueID that will replace the uniqueID of PathV1.h.

llvm-svn: 184217

11 years agoFix a missing pointer deref that was uncovered by one of the buildbots.
Adrian Prantl [Tue, 18 Jun 2013 18:24:04 +0000 (18:24 +0000)]
Fix a missing pointer deref that was uncovered by one of the buildbots.

llvm-svn: 184216

11 years ago<rdar://problem/12717717>
Enrico Granata [Tue, 18 Jun 2013 18:23:07 +0000 (18:23 +0000)]
<rdar://problem/12717717>

Modifying our data formatters matching algorithm to ensure that "const X*" is treated as equivalent to "X*"
Also, a couple improvements to the "lldb types" logging

llvm-svn: 184215

11 years agoCorrectly compute the index of the first string format argument when deciding
Eli Friedman [Tue, 18 Jun 2013 18:10:01 +0000 (18:10 +0000)]
Correctly compute the index of the first string format argument when deciding
whether to emit a -Wformat-security warning.  <rdar://problem/14178260>.

llvm-svn: 184214

11 years agoReduce indentation.
David Blaikie [Tue, 18 Jun 2013 18:03:17 +0000 (18:03 +0000)]
Reduce indentation.

llvm-svn: 184213

11 years agoThis patch fixes the issue where our command-line tab completer would sometimes repli...
Enrico Granata [Tue, 18 Jun 2013 18:01:08 +0000 (18:01 +0000)]
This patch fixes the issue where our command-line tab completer would sometimes replicate commands
e.g.

(lldb) pl<TAB>
Available completions:
platform
plugin
platform
plugin

Thanks to Matthew Sorrels for doing work and testing on this issue

llvm-svn: 184212

11 years agoPR14503: Don't assert if a constexpr constructor temploid instantiates to a
Richard Smith [Tue, 18 Jun 2013 17:51:51 +0000 (17:51 +0000)]
PR14503: Don't assert if a constexpr constructor temploid instantiates to a
constructor that does not initialize all members, and that constructor is used
to initialize a global.

llvm-svn: 184211

11 years agoConvert most uses of PathV1.h in ToolRunner.cpp.
Rafael Espindola [Tue, 18 Jun 2013 17:20:08 +0000 (17:20 +0000)]
Convert most uses of PathV1.h in ToolRunner.cpp.

llvm-svn: 184210

11 years agoRemoving the lldb-perf file group from our Xcode project
Enrico Granata [Tue, 18 Jun 2013 17:15:32 +0000 (17:15 +0000)]
Removing the lldb-perf file group from our Xcode project
This is in a separate project now so this duplication is unnecessary and some referenced files were also dangling after a rename

llvm-svn: 184209

11 years agoObjective-C: Fixes a typo correction bug where a
Fariborz Jahanian [Tue, 18 Jun 2013 17:10:58 +0000 (17:10 +0000)]
Objective-C: Fixes a typo correction bug where a
selector would be correted to identical selector name
in certain corner cases. // rdar://7853549

llvm-svn: 184208

11 years agoAdd support for encoding the HLE XACQUIRE and XRELEASE prefixes.
Stefanus Du Toit [Tue, 18 Jun 2013 17:08:10 +0000 (17:08 +0000)]
Add support for encoding the HLE XACQUIRE and XRELEASE prefixes.

For decoding, keep the current behavior of always decoding these as their REP
versions. In the future, this could be improved to recognize the cases where
these behave as XACQUIRE and XRELEASE and decode them as such.

llvm-svn: 184207

11 years agoAdd a version of unique_file that return just the file name.
Rafael Espindola [Tue, 18 Jun 2013 17:01:00 +0000 (17:01 +0000)]
Add a version of unique_file that return just the file name.

llvm-svn: 184206

11 years agoCodeGen: Have 'this'-returning constructors and destructors to take advantage of...
Stephen Lin [Tue, 18 Jun 2013 17:00:49 +0000 (17:00 +0000)]
CodeGen: Have 'this'-returning constructors and destructors to take advantage of the new backend 'returned' attribute.

The backend will now use the generic 'returned' attribute to form tail calls where possible, as well as avoid save-restores of 'this' in some cases (specifically the cases that matter for the ARM C++ ABI).

This patch also reverts a prior front-end only partial implementation of these optimizations, since it's no longer required.

llvm-svn: 184205

11 years agoReturn a std::string from PrependMainExecutablePath.
Rafael Espindola [Tue, 18 Jun 2013 16:47:55 +0000 (16:47 +0000)]
Return a std::string from PrependMainExecutablePath.

llvm-svn: 184204

11 years agoRemove PathV1.h use from BugDriver.cpp.
Rafael Espindola [Tue, 18 Jun 2013 16:21:54 +0000 (16:21 +0000)]
Remove PathV1.h use from BugDriver.cpp.

llvm-svn: 184203

11 years agoRemove use of PathV1.h from ExecutionDriver.cpp.
Rafael Espindola [Tue, 18 Jun 2013 16:14:09 +0000 (16:14 +0000)]
Remove use of PathV1.h from ExecutionDriver.cpp.

llvm-svn: 184202

11 years agoScan the successor blocks and use the PHI nodes as a hint for possible chain roots.
Nadav Rotem [Tue, 18 Jun 2013 15:58:05 +0000 (15:58 +0000)]
Scan the successor blocks and use the PHI nodes as a hint for possible chain roots.

llvm-svn: 184201

11 years agoAdd a return value to make this function more useful.
Nadav Rotem [Tue, 18 Jun 2013 15:57:12 +0000 (15:57 +0000)]
Add a return value to make this function more useful.

llvm-svn: 184200

11 years agoFix buildbot failure.
Fariborz Jahanian [Tue, 18 Jun 2013 15:54:30 +0000 (15:54 +0000)]
Fix buildbot failure.

llvm-svn: 184199

11 years agoRemove usage of PathV1.h from OptimizerDriver.cpp.
Rafael Espindola [Tue, 18 Jun 2013 15:54:13 +0000 (15:54 +0000)]
Remove usage of PathV1.h from OptimizerDriver.cpp.

llvm-svn: 184198

11 years agocpp11-migrate: Transforms honour header modification flag
Edwin Vane [Tue, 18 Jun 2013 15:44:58 +0000 (15:44 +0000)]
cpp11-migrate: Transforms honour header modification flag

Transforms will now make changes to headers if header modifications have been
enabled.

FIXME: Only UseNullptr contains a cursory header modification test. Other
transforms should have them too.

llvm-svn: 184197

11 years agoConvert some uses of eraseFromDisk.
Rafael Espindola [Tue, 18 Jun 2013 15:33:18 +0000 (15:33 +0000)]
Convert some uses of eraseFromDisk.

llvm-svn: 184196

11 years agoObjective-C [qoi]: privide typo correction for selectors
Fariborz Jahanian [Tue, 18 Jun 2013 15:31:36 +0000 (15:31 +0000)]
Objective-C [qoi]: privide typo correction for selectors
in addition of receiver having static type, but also when
receiver has dynamic type (of 'id' variety) as well as when
receiver is of 'Class' type vareity. // rdar://7853549

llvm-svn: 184195

11 years agocpp11-migrate: Transform now responsible for applying replacements
Edwin Vane [Tue, 18 Jun 2013 15:31:01 +0000 (15:31 +0000)]
cpp11-migrate: Transform now responsible for applying replacements

To make it possible for replacements made to headers as part of transforming
one translation unit to not be visible to the transform of other translation
units, Transform now handles replacement application as part of its
end-of-source handling. Several things were simplified as a result:

- The duplicated code in every transform for applying replacements is now gone
  and replaced with one location in Transform.
- RefactoringTool is no longer used since Transform houses the Replacements
  structure.
- RewriterContainer is now a private implementation detail of Transform (also
  renamed to RewriterManager since its behaviour is slightly different now with
  respect to lifetime of objects).
- There's now no distinction between input and output file state.

Misc notes:

- Interface changes reflected in unit tests.
- Replacements for files other than the main file are assumed to be for headers
  and stored as such.

llvm-svn: 184194

11 years agoDon't use PathV1.h in tools/bugpoint/Miscompilation.cpp.
Rafael Espindola [Tue, 18 Jun 2013 15:29:32 +0000 (15:29 +0000)]
Don't use PathV1.h in tools/bugpoint/Miscompilation.cpp.

llvm-svn: 184193

11 years agoRemove option emitter from clang-tblgen
Reid Kleckner [Tue, 18 Jun 2013 15:25:00 +0000 (15:25 +0000)]
Remove option emitter from clang-tblgen

The CMake build was still using it because I forgot to s/CLANG/LLVM/ in
the tablegen() call.  The Makefile build is already using llvm-tblgen.

llvm-svn: 184192

11 years agoBasic support for parsing Mach-O universal binaries in LLVMObject library
Alexey Samsonov [Tue, 18 Jun 2013 15:03:28 +0000 (15:03 +0000)]
Basic support for parsing Mach-O universal binaries in LLVMObject library

llvm-svn: 184191

11 years ago[asan] fix a rare failure in fast unwinder, found by asan/clang bootstrap
Kostya Serebryany [Tue, 18 Jun 2013 14:47:40 +0000 (14:47 +0000)]
[asan] fix a rare failure in fast unwinder, found by asan/clang bootstrap

llvm-svn: 184190

11 years ago[lsan] Set current_thread_tid correctly for main thread.
Sergey Matveev [Tue, 18 Jun 2013 14:44:45 +0000 (14:44 +0000)]
[lsan] Set current_thread_tid correctly for main thread.

llvm-svn: 184189

11 years agoRemove duplicated file and directory.
Rafael Espindola [Tue, 18 Jun 2013 14:09:48 +0000 (14:09 +0000)]
Remove duplicated file and directory.

llvm-svn: 184188

11 years ago[sanitizer] Fix Android build.
Evgeniy Stepanov [Tue, 18 Jun 2013 13:56:12 +0000 (13:56 +0000)]
[sanitizer] Fix Android build.

llvm-svn: 184187

11 years agoDon't convert object_error's enum to and from int.
Rafael Espindola [Tue, 18 Jun 2013 13:30:31 +0000 (13:30 +0000)]
Don't convert object_error's enum to and from int.

This allows the compiler to see the enum and warn about it. While in here,
fix a switch to not use a default and fix style violations.

llvm-svn: 184186

11 years ago[sanitizer] Remove a set of deprecated ioctls.
Evgeniy Stepanov [Tue, 18 Jun 2013 10:37:17 +0000 (10:37 +0000)]
[sanitizer] Remove a set of deprecated ioctls.

llvm-svn: 184185

11 years ago[sanitizer] Replace ext2_ ioctls with generic fs_ ioctls.
Evgeniy Stepanov [Tue, 18 Jun 2013 09:49:04 +0000 (09:49 +0000)]
[sanitizer] Replace ext2_ ioctls with generic fs_ ioctls.

They are actually the same, but ext2_fs.h header is not available in userspace
with newer kernels.

llvm-svn: 184184

11 years ago[sanitizer] Symbolic ioctl names.
Evgeniy Stepanov [Tue, 18 Jun 2013 09:22:24 +0000 (09:22 +0000)]
[sanitizer] Symbolic ioctl names.

Replace hardcoded ioctl request ids with symbolic names.
Disable certain ioctls on platforms where such names are not found in the
system headers.
Fix a bug in ioctl_lookup.
Reenable ioctl test on Mac.

llvm-svn: 184183

11 years agoARM: fix literal load with positive offset encoding
Amaury de la Vieuville [Tue, 18 Jun 2013 08:13:05 +0000 (08:13 +0000)]
ARM: fix literal load with positive offset encoding

When using a positive offset, literal loads where encoded
as if it was negative, because:
- The sign bit was not assigned to an operand
- The addrmode_imm12 operand was not encoding the sign bit correctly

This patch also makes the assembler look at the .w/.n specifier for
loads.

llvm-svn: 184182

11 years agoARM: add operands pre-writeback variants when needed
Amaury de la Vieuville [Tue, 18 Jun 2013 08:12:51 +0000 (08:12 +0000)]
ARM: add operands pre-writeback variants when needed

llvm-svn: 184181

11 years agoARM: fix thumb literal loads decoding
Amaury de la Vieuville [Tue, 18 Jun 2013 08:03:06 +0000 (08:03 +0000)]
ARM: fix thumb literal loads decoding

This fixes two previous issues:
- Negative offsets were not correctly disassembled
- The decoded opcodes were not the right one

llvm-svn: 184180

11 years agoARM: thumb stores cannot use PC as dest register
Amaury de la Vieuville [Tue, 18 Jun 2013 08:02:56 +0000 (08:02 +0000)]
ARM: thumb stores cannot use PC as dest register

llvm-svn: 184179

11 years agoHopefully fix the MSVS build after r184105
Timur Iskhodzhanov [Tue, 18 Jun 2013 07:57:22 +0000 (07:57 +0000)]
Hopefully fix the MSVS build after r184105

llvm-svn: 184178

11 years agoUpdate to new API.
Bill Wendling [Tue, 18 Jun 2013 07:50:43 +0000 (07:50 +0000)]
Update to new API.

llvm-svn: 184177

11 years agoUpdate to pass in pointers intead of references.
Bill Wendling [Tue, 18 Jun 2013 07:22:05 +0000 (07:22 +0000)]
Update to pass in pointers intead of references.

llvm-svn: 184176

11 years agoUse pointers to the MCAsmInfo and MCRegInfo.
Bill Wendling [Tue, 18 Jun 2013 07:20:20 +0000 (07:20 +0000)]
Use pointers to the MCAsmInfo and MCRegInfo.

Someone may want to do something crazy, like replace these objects if they
change or something.

No functionality change intended.

llvm-svn: 184175

11 years agoFix nondeterminism in .gcno file generation.
Nick Lewycky [Tue, 18 Jun 2013 06:38:21 +0000 (06:38 +0000)]
Fix nondeterminism in .gcno file generation.

llvm-svn: 184174

11 years agoRemove dead prototype.
Bill Wendling [Tue, 18 Jun 2013 06:24:14 +0000 (06:24 +0000)]
Remove dead prototype.

llvm-svn: 184173

11 years agoSimplify some of the code. No functionality change.
Bill Wendling [Tue, 18 Jun 2013 06:07:26 +0000 (06:07 +0000)]
Simplify some of the code. No functionality change.

llvm-svn: 184172

11 years agosize_t on Darwin AAPCS targets is "unsigned long". <rdar://problem/14136459>
Bob Wilson [Tue, 18 Jun 2013 05:36:04 +0000 (05:36 +0000)]
size_t on Darwin AAPCS targets is "unsigned long". <rdar://problem/14136459>

Some embedded targets use ARM's AAPCS with iOS header files that define size_t
as unsigned long, which conflicts with the usual AAPCS definition of size_t
as unsigned int.

llvm-svn: 184171

11 years agoremove some @deprecated markers: LLVM APIs aren't deprecated, they are removed when...
Chris Lattner [Tue, 18 Jun 2013 04:57:25 +0000 (04:57 +0000)]
remove some @deprecated markers: LLVM APIs aren't deprecated, they are removed when obsolete.
These APIs are still used, and the constant APIs are actually really important.

Removing these makes -Wdocumentation more useful.

llvm-svn: 184170

11 years agoSimplify a loop in ProcessCodeCompleteResults(). Pointed out by David Blaikie
Dmitri Gribenko [Tue, 18 Jun 2013 04:41:50 +0000 (04:41 +0000)]
Simplify a loop in ProcessCodeCompleteResults().  Pointed out by David Blaikie

llvm-svn: 184169

11 years agoArrayRef'ize CodeCompletionContext::getNumSelIdents()
Dmitri Gribenko [Tue, 18 Jun 2013 04:02:26 +0000 (04:02 +0000)]
ArrayRef'ize CodeCompletionContext::getNumSelIdents()

llvm-svn: 184168

11 years agocontextual conversion fix: C++98 compatibility warning.
Larisse Voufo [Tue, 18 Jun 2013 03:08:53 +0000 (03:08 +0000)]
contextual conversion fix: C++98 compatibility warning.

llvm-svn: 184167

11 years agoAdd support for -fpcc-struct-return. Patch by Arthur O'Dwyer!
John McCall [Tue, 18 Jun 2013 02:46:29 +0000 (02:46 +0000)]
Add support for -fpcc-struct-return.  Patch by Arthur O'Dwyer!

llvm-svn: 184166

11 years agor184100 Fix -- Updated test cases for contextual conversion
Larisse Voufo [Tue, 18 Jun 2013 01:27:47 +0000 (01:27 +0000)]
r184100 Fix -- Updated test cases for contextual conversion

llvm-svn: 184165

11 years agoBuild Apple's llvmCore with --disable-zlib. <rdar://problem/14182316>
Bob Wilson [Tue, 18 Jun 2013 01:22:29 +0000 (01:22 +0000)]
Build Apple's llvmCore with --disable-zlib. <rdar://problem/14182316>

llvm-svn: 184164

11 years ago<rdar://problem/13270271>
Enrico Granata [Tue, 18 Jun 2013 01:17:46 +0000 (01:17 +0000)]
<rdar://problem/13270271>

Only add the — (double dash) separator to a command syntax if it has any options to be separated from arguments
Also remove the unused Translate() method from CommandObject

llvm-svn: 184163

11 years ago[yaml2obj][ELF] Factor out string table section creation.
Sean Silva [Tue, 18 Jun 2013 01:11:27 +0000 (01:11 +0000)]
[yaml2obj][ELF] Factor out string table section creation.

llvm-svn: 184162

11 years ago[yaml2obj][ELF] Refer specifically to the section header string table.
Sean Silva [Tue, 18 Jun 2013 01:11:24 +0000 (01:11 +0000)]
[yaml2obj][ELF] Refer specifically to the section header string table.

A bug in libObject will cause it to assert() if a symbol table's string
table and the section header string table are the same section, so we
need to ensure that we emit two different string tables (among other
things). The problematic code is the hardcoded usage of ".strtab"
(`dot_strtab_sec`) for looking up symbol names in
ELFObjectFile<ELFT>::getSymbolName.

I discussed this with Michael, and he has some local improvements to the
ELF code in libObject that, among other things, should fix our handling
of this scenario.

llvm-svn: 184161

11 years ago[yaml2obj][ELF] Ensure more fields are zero'd.
Sean Silva [Tue, 18 Jun 2013 01:11:21 +0000 (01:11 +0000)]
[yaml2obj][ELF] Ensure more fields are zero'd.

I was spotting garbage in the output. I'd like to just zero the entire
ELFYAML::Section to be sure, but it contains non-POD types. (I'm also
trying to avoid bloating the ELFYAML::Foo classes with a bunch of
constructor code).

No test, since this is by its very nature unpredictable. I'm pretty sure
that one of the sanitizers would catch it immediately though.

llvm-svn: 184160

11 years agoAdded a troubleshooting page as a place to add commonly asked questions with solutions.
Greg Clayton [Tue, 18 Jun 2013 01:01:31 +0000 (01:01 +0000)]
Added a troubleshooting page as a place to add commonly asked questions with solutions.

The first two questions I have added explanations and answers to are:
- File and line breakpoints are not getting hit
- How do I check if I have debug symbols?

llvm-svn: 184159

11 years ago<rdar://problem/13926101>
Enrico Granata [Tue, 18 Jun 2013 00:58:06 +0000 (00:58 +0000)]
<rdar://problem/13926101>

Allow “command script import” to work with folder names that have a ‘ (tick) in them

Kudos to StackOverflow (question 1494399) for the replace_all code!

llvm-svn: 184158

11 years agoRemove an ugly hack that was meant to eliminate the breakpoint ambiguity
Adrian Prantl [Tue, 18 Jun 2013 00:27:36 +0000 (00:27 +0000)]
Remove an ugly hack that was meant to eliminate the breakpoint ambiguity
between a block assignment and the entry of the block function. In reality
this wouldn't work anyway because blocks are predominantly created
on-the-fly inside of an ObjC method invocation.
The proper fix for the ambiguity is to use -gcolumn-info to differentiate
the breakpoints.

This is expected to break some block-related darwin-gdb tests.

rdar://problem/14039866

llvm-svn: 184157

11 years agoAdding a "cmdline" category to the test suite
Enrico Granata [Tue, 18 Jun 2013 00:22:27 +0000 (00:22 +0000)]
Adding a "cmdline" category to the test suite

llvm-svn: 184155

11 years agoDelete dead code.
Eli Friedman [Tue, 18 Jun 2013 00:22:17 +0000 (00:22 +0000)]
Delete dead code.

llvm-svn: 184154

11 years agoA collection of 3 patches to the COFF file ObjectFile parser from Virgile Bello:
Greg Clayton [Tue, 18 Jun 2013 00:08:58 +0000 (00:08 +0000)]
A collection of 3 patches to the COFF file ObjectFile parser from Virgile Bello:

3 patches, aiming to improve PE/COFF support:
- First patch fix symbol reading (invalid header size from sizeof() == 20 != 18, and various bugfixes such as invalid skipping of auxiliary symbols, 4 bytes shift from beginning, etc...).
- Second patch add image_base to section vmaddr offset so that VM addr is in image_base space.
- Third patch add support for DWARF section in PECOFF (taken from ELF counterpart), since they are generated by gcc/clang under windows.

llvm-svn: 184153

11 years agoAccept and ignore -fdebug-types-section for now. This will be used
Eric Christopher [Tue, 18 Jun 2013 00:03:50 +0000 (00:03 +0000)]
Accept and ignore -fdebug-types-section for now. This will be used
later with dwarf4 type hashing.

llvm-svn: 184152

11 years agoFileCheck-ize.
Eric Christopher [Tue, 18 Jun 2013 00:03:46 +0000 (00:03 +0000)]
FileCheck-ize.

llvm-svn: 184151

11 years agoAdd a missing testcase for ObjC ivar encoding for a C++ class with a vptr.
Eli Friedman [Mon, 17 Jun 2013 23:57:41 +0000 (23:57 +0000)]
Add a missing testcase for ObjC ivar encoding for a C++ class with a vptr.
Found by skimming over lcov report.

llvm-svn: 184150

11 years agoTurn Clang 3.3 boxes on C++ status from yellow to green now we're releasing it.
Richard Smith [Mon, 17 Jun 2013 23:54:23 +0000 (23:54 +0000)]
Turn Clang 3.3 boxes on C++ status from yellow to green now we're releasing it.

llvm-svn: 184149

11 years agoPoint link at correct location for Clang 3.3 release notes.
Richard Smith [Mon, 17 Jun 2013 23:53:08 +0000 (23:53 +0000)]
Point link at correct location for Clang 3.3 release notes.

llvm-svn: 184148

11 years agoRenaming the "--wipe" option to "command history" to "--clear" (-C) for coherence...
Enrico Granata [Mon, 17 Jun 2013 23:28:27 +0000 (23:28 +0000)]
Renaming the "--wipe" option to "command history" to "--clear" (-C) for coherence with the rest of the LLDB command-line interface

llvm-svn: 184147

11 years agoAdd new files to CMakeLists.txt to fix cmake build error.
Michael Sartain [Mon, 17 Jun 2013 23:07:22 +0000 (23:07 +0000)]
Add new files to CMakeLists.txt to fix cmake build error.

llvm-svn: 184143

11 years ago<rdar://problem/14134716>
Enrico Granata [Mon, 17 Jun 2013 22:51:50 +0000 (22:51 +0000)]
<rdar://problem/14134716>

This is a rewrite of the command history facility of LLDB

It takes the history management out of the CommandInterpreter into its own CommandHistory class
It reimplements the command history command to allow more combinations of options to work correctly (e.g. com hist -c 1 -s 5)
It adds a new --wipe (-w) option to command history to allow clearing the history on demand
It extends the lldbtest runCmd: and expect: methods to allow adding commands to history if need be
It adds a test case for the reimplemented facility

llvm-svn: 184140

11 years agoFix source range of CXXNewExpr with parentheses around the type. PR15569.
Eli Friedman [Mon, 17 Jun 2013 22:35:10 +0000 (22:35 +0000)]
Fix source range of CXXNewExpr with parentheses around the type.  PR15569.

llvm-svn: 184139

11 years agoFix the build with gcc 4.7 and -std=c++11.
Rafael Espindola [Mon, 17 Jun 2013 22:24:06 +0000 (22:24 +0000)]
Fix the build with gcc 4.7 and -std=c++11.

The error message was:

/home/espindola/llvm/llvm/tools/gold/gold-plugin.cpp: In function ‘ld_plugin_status cleanup_hook()’:
/home/espindola/llvm/llvm/tools/gold/gold-plugin.cpp:461:30: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string<char>}’ through ‘...’

I will check if this was a clang or gcc issue.

llvm-svn: 184138

11 years agoCompute the visibility of static local variables consistently. Fixes PR16208.
Eli Friedman [Mon, 17 Jun 2013 21:51:45 +0000 (21:51 +0000)]
Compute the visibility of static local variables consistently.  Fixes PR16208.

llvm-svn: 184137

11 years agoConvert two uses of eraseFromDisk.
Rafael Espindola [Mon, 17 Jun 2013 21:50:28 +0000 (21:50 +0000)]
Convert two uses of eraseFromDisk.

llvm-svn: 184136

11 years agoMI-Sched: handle ReadAdvance latencies as used by Swift.
Andrew Trick [Mon, 17 Jun 2013 21:45:18 +0000 (21:45 +0000)]
MI-Sched: handle ReadAdvance latencies as used by Swift.

llvm-svn: 184135

11 years agoReenable, improve, and add MI-Sched unit tests.
Andrew Trick [Mon, 17 Jun 2013 21:45:16 +0000 (21:45 +0000)]
Reenable, improve, and add MI-Sched unit tests.

llvm-svn: 184134

11 years agoGive RegMax higher priority.
Andrew Trick [Mon, 17 Jun 2013 21:45:13 +0000 (21:45 +0000)]
Give RegMax higher priority.

llvm-svn: 184133

11 years agoRemove compareRPDelta.
Andrew Trick [Mon, 17 Jun 2013 21:45:11 +0000 (21:45 +0000)]
Remove compareRPDelta.

A complex, expensive heuristic with little value in the current design.

llvm-svn: 184132

11 years agoMI Sched: fix a typo in RegPressure heuristics.
Andrew Trick [Mon, 17 Jun 2013 21:45:09 +0000 (21:45 +0000)]
MI Sched: fix a typo in RegPressure heuristics.

llvm-svn: 184131

11 years agoMI-Sched: Remove another heuristic that is sensitive to queue order.
Andrew Trick [Mon, 17 Jun 2013 21:45:07 +0000 (21:45 +0000)]
MI-Sched: Remove another heuristic that is sensitive to queue order.

llvm-svn: 184130

11 years agoMI-Sched: Track multiple candidates with the same priority level.
Andrew Trick [Mon, 17 Jun 2013 21:45:05 +0000 (21:45 +0000)]
MI-Sched: Track multiple candidates with the same priority level.

This eliminates the MultiPressure scheduling "reason". It was
sensitive to queue order. We don't like being sensitive to queue
order.

llvm-svn: 184129

11 years agorevert r183799: scop detection: remove an iteration over all uses
Sebastian Pop [Mon, 17 Jun 2013 21:43:10 +0000 (21:43 +0000)]
revert r183799: scop detection: remove an iteration over all uses

llvm-svn: 184128

11 years agoFixing a linking issue when building LLDB with ToT LLVM
Enrico Granata [Mon, 17 Jun 2013 21:42:39 +0000 (21:42 +0000)]
Fixing a linking issue when building LLDB with ToT LLVM

llvm-svn: 184127

11 years agoFix breakpoint test to account for full path of source file location.
Matt Kopec [Mon, 17 Jun 2013 21:27:50 +0000 (21:27 +0000)]
Fix breakpoint test to account for full path of source file location.

llvm-svn: 184126

11 years agoFixed a problem in the expression parser that
Sean Callanan [Mon, 17 Jun 2013 21:19:31 +0000 (21:19 +0000)]
Fixed a problem in the expression parser that
caused the IR interpreter not to work if the
process had finished running.

<rdar://problem/14124301>

llvm-svn: 184125

11 years ago[PECOFF] Extract atom definitions as Atoms.h so that we can use them in other files.
Rui Ueyama [Mon, 17 Jun 2013 21:19:07 +0000 (21:19 +0000)]
[PECOFF] Extract atom definitions as Atoms.h so that we can use them in other files.

Extract atom definitions as Atoms.h so that we can use them in other files.
Also applied clang-format to Atoms.h.

Reviewers: shankarke

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D995

llvm-svn: 184124

11 years agoFix Expr::Classify to correctly classify ExtVectorElementExprs. PR16204.
Eli Friedman [Mon, 17 Jun 2013 21:09:57 +0000 (21:09 +0000)]
Fix Expr::Classify to correctly classify ExtVectorElementExprs.  PR16204.

llvm-svn: 184123

11 years agoRemove usage of PathV1.h in FindBugs.cpp.
Rafael Espindola [Mon, 17 Jun 2013 20:48:36 +0000 (20:48 +0000)]
Remove usage of PathV1.h in FindBugs.cpp.

llvm-svn: 184122

11 years agoDirectly access objects which may change during compilation.
Bill Wendling [Mon, 17 Jun 2013 20:41:25 +0000 (20:41 +0000)]
Directly access objects which may change during compilation.

llvm-svn: 184121

11 years agoReapply r183985 now that the missing check was added to PathV2.
Rafael Espindola [Mon, 17 Jun 2013 20:37:56 +0000 (20:37 +0000)]
Reapply r183985 now that the missing check was added to PathV2.

llvm-svn: 184120