Johnny Chen
de2ff3b64e
Add reference to ToT/examples/customization for more customization examples.
...
llvm-svn: 141800
2011-10-12 19:20:04 +00:00
Johnny Chen
de6ade01d0
Add an examples/customization directory and add a subdirectory pwd-cd-and-system
...
which contains the lldb init file and a utils.py Python module in order to add
the 'pwd', 'cd', and 'system' lldb commands.
llvm-svn: 141799
2011-10-12 19:16:06 +00:00
Douglas Gregor
227c352bae
We do parse hexfloats in C++11; make it actually work.
...
llvm-svn: 141798
2011-10-12 18:51:02 +00:00
Sean Callanan
1a2c5386cd
Made the expression parser's type search call the
...
proper namespace-aware APIs.
llvm-svn: 141797
2011-10-12 18:44:30 +00:00
Eric Christopher
93663b3c62
Revert file/scope handling patches. gdb testing revealed a couple of bugs.
...
llvm-svn: 141796
2011-10-12 18:39:35 +00:00
Douglas Gregor
3d68aa838b
The Objective-C rewriter uses the fragile ABI, always.
...
llvm-svn: 141795
2011-10-12 18:28:53 +00:00
Jim Grosbach
8007320902
addrmode2 is gone from these, so no need for the reg0 operand.
...
llvm-svn: 141794
2011-10-12 18:11:24 +00:00
Ted Kremenek
6effcb5082
Fix typo in name of diagnostic.
...
llvm-svn: 141793
2011-10-12 18:03:37 +00:00
Sean Callanan
4c3977c278
Added support to ClagnExpressionDeclMap for finding
...
data symbols in namespaces.
llvm-svn: 141792
2011-10-12 18:00:53 +00:00
Johnny Chen
04a101d475
Add cleanups for 'command script add' to TestCommandPython.py.
...
llvm-svn: 141790
2011-10-12 17:50:41 +00:00
Sean Callanan
25ea08ef8c
Changed FindExternalVisibleDecls() to use the module
...
level FindFunctions() where appropriate and not use
SymbolContext::FindFunctionsByName().
llvm-svn: 141789
2011-10-12 17:38:09 +00:00
Argyrios Kyrtzidis
f37d0a61c0
Handle the case where preprocessor entities are not received in order,
...
fixes http://llvm.org/PR11120
llvm-svn: 141788
2011-10-12 17:36:33 +00:00
Jim Grosbach
84cf2b8c98
ARM encoding tests for STC.
...
llvm-svn: 141787
2011-10-12 17:36:13 +00:00
Jim Grosbach
483995875f
ARM parsing and encoding for the <option> form of LDC/STC instructions.
...
llvm-svn: 141786
2011-10-12 17:34:41 +00:00
Douglas Gregor
a5542112d7
Add -std=c++11 and -std=gnu++11 language flags, from Ahmed Charles
...
llvm-svn: 141785
2011-10-12 17:32:39 +00:00
Sean Callanan
03267a7068
Oops, committed my local build settings. Fixed that.
...
llvm-svn: 141784
2011-10-12 17:08:22 +00:00
Sean Callanan
1fd3f4f14c
Made FindGlobalVariable() optionally search a specific
...
module and namespace. Also made it use FindGlobalVariables()
instead of the more heavyweight
GetVariablesForVariableExpressionPath().
llvm-svn: 141783
2011-10-12 16:59:31 +00:00
Douglas Gregor
e7a8e3b612
Introduce BalancedDelimiterTracker, to better track open/close
...
delimiter pairs and detect when we exceed the implementation limit for
nesting depth, from Aaron Ballman!
llvm-svn: 141782
2011-10-12 16:37:45 +00:00
Jim Grosbach
d74c0e7c14
80 columns.
...
llvm-svn: 141781
2011-10-12 16:36:01 +00:00
Jim Grosbach
6966411f45
Tidy up. Formatting.
...
llvm-svn: 141780
2011-10-12 16:34:37 +00:00
Dan Gohman
de239d2647
Fix a thinko that Nick noticed. The previous code actually worked as
...
intended, but only by accident.
llvm-svn: 141779
2011-10-12 15:56:56 +00:00
Douglas Gregor
6a0e23ff8b
Teach __has_nothrow_assign not to complain about access (GCC and EDG
...
ignore access entirely for it) and not to crash on assignment operator
templates. Fixes PR11110.
llvm-svn: 141777
2011-10-12 15:40:49 +00:00
NAKAMURA Takumi
9bfcf77638
lib/Object/ELFObjectFile.cpp: Fix undefined behavior for MC/ELF/many-section.s not to fail (on msvc).
...
DenseMap::lookup(k) would return "default constructor value" when k was not met. It would be useless when value type were POD.
llvm-svn: 141774
2011-10-12 10:28:55 +00:00
Jim Goodnow II
5a793d3762
Removed extra line in comment.
...
llvm-svn: 141773
2011-10-12 09:55:01 +00:00
Anton Korobeynikov
804dd056b3
Add target info for Linux on PPC & Sparc.
...
Patch by Hal Finkel!
llvm-svn: 141772
2011-10-12 09:30:58 +00:00
Argyrios Kyrtzidis
7f6b029c4e
Introduce SourceManager::getFileLoc which returns a file location
...
taking into account macro arguments.
llvm-svn: 141771
2011-10-12 07:07:40 +00:00
Argyrios Kyrtzidis
e454986617
[libclang] Allow using getDeclCursorUSR function with a Decl* and not a cursor.
...
llvm-svn: 141770
2011-10-12 07:07:36 +00:00
Argyrios Kyrtzidis
769c7bcd9a
[libclang] Make MakeCXTranslationUnit usable outside CIndex.cpp.
...
llvm-svn: 141769
2011-10-12 07:07:33 +00:00
Richard Smith
fd53aaf7e7
constexpr: don't consider class types with mutable members to be literal types.
...
The standard doesn't allow this, but mutable constexpr variables break the
semantics so badly that we can't reasonably accept them.
llvm-svn: 141768
2011-10-12 05:08:15 +00:00
Bill Wendling
918cea2c27
Expand the check for a landing pad so that it looks at the basic block's
...
containing loop's header to see if that's a landing pad. If it is, then we don't
want to hoist instructions out of the loop and above the header.
llvm-svn: 141767
2011-10-12 02:58:01 +00:00
Sean Callanan
b6d70ebc0a
Added ClangNamespaceDecl * parameters to several
...
core Module functions that the expression parser
will soon be using.
llvm-svn: 141766
2011-10-12 02:08:07 +00:00
Sean Callanan
8897224363
Cleanups in preparation for making FindExternalVisibleDecls
...
look in individual modules rather than globally.
Also some whitespace fixes.
llvm-svn: 141765
2011-10-12 01:39:28 +00:00
Johnny Chen
c79eec0c18
Add description of a more capable 'cd' command using 'command script add'.
...
llvm-svn: 141764
2011-10-12 01:28:23 +00:00
Jakob Stoklund Olesen
35163e21dc
Use an existing function.
...
llvm-svn: 141763
2011-10-12 01:24:51 +00:00
Eric Christopher
663b7f353e
Remember to set the location in EmitGlobalVariable to the current decl
...
if we're going to delete the setLocation as we did in 141732.
llvm-svn: 141762
2011-10-12 01:11:30 +00:00
Akira Hatanaka
3261c0fa6e
Define base class LogicNOR and make 32-bit and 64-bit NOR derive from it.
...
llvm-svn: 141761
2011-10-12 01:05:13 +00:00
Akira Hatanaka
c57febff4a
Fix encoding of 32-bit integer instructions. Change names of operands and nodes.
...
Remove unused classes.
llvm-svn: 141757
2011-10-12 00:56:06 +00:00
Greg Clayton
d4e2552c73
Fix preprocessor warnings for no newline at the end of the source files.
...
llvm-svn: 141755
2011-10-12 00:53:29 +00:00
Eric Christopher
7c8798baea
Make this use a public accessor too.
...
llvm-svn: 141752
2011-10-12 00:38:05 +00:00
Richard Smith
a9e33d44a6
Handle Perforce-style conflict markers like normal conflict markers. Perforce
...
swaps over the <<<< and >>>> markers, and uses shorter markers than traditional
tools.
llvm-svn: 141751
2011-10-12 00:37:51 +00:00
Nick Lewycky
c585de670f
Add missing space.
...
llvm-svn: 141750
2011-10-12 00:14:31 +00:00
Nick Lewycky
064c1c0e77
Fix indent in comment.
...
llvm-svn: 141749
2011-10-12 00:14:12 +00:00
Sean Callanan
503aa525ea
Implemented a namespace map that allows searching
...
of namespaces (only in the modules where they've
been found) for entities inside those namespaces.
For each NamespaceDecl that has been imported into
the parser, we maintain a map containing
[ModuleSP, ClangNamespaceDecl] pairs in the ASTImporter.
This map has one entry for each module in which the
namespace has been found. When we later scan for an
entity inside a namespace, we search only the modules
in which that namespace was found.
Also made a small whitespace fix in
ClangExpressionParser.cpp.
llvm-svn: 141748
2011-10-12 00:12:34 +00:00
Evan Cheng
af1389546e
Fix r141744.
...
1. The speculation check may not have been performed if the BB hasn't had a load
LICM candidate.
2. If the candidate would be CSE'ed, then go ahead and speculatively LICM the
instruction even if it's in high register pressure situation.
llvm-svn: 141747
2011-10-12 00:09:14 +00:00
Jakob Stoklund Olesen
39c31a77b8
Fix -widen-vmovs liveness issues.
...
When widening a copy, we are reading a larger register that may not be
live. Use an <undef> flag to tell the register scavenger and machine
code verifier that we know the value isn't defined.
We now widen:
%S6<def> = COPY %S4<kill>, %D3<imp-def>
into:
%D3<def> = VMOVD %D2<undef>, pred:14, pred:%noreg, %S4<imp-use,kill>
This also keeps the <kill> flag on %S4 so we don't inadvertently kill a
live value in %S5.
Finally, ensure that ARMBaseInstrInfo::setExecutionDomain() preserves
the <undef> flag when converting VMOVD to VORR.
llvm-svn: 141746
2011-10-12 00:06:23 +00:00
Fariborz Jahanian
fa643c8f3b
objc: note location of the previously declared
...
property in the diagnostic.
llvm-svn: 141745
2011-10-12 00:00:57 +00:00
Evan Cheng
f192ca0761
Refine r141689 with a tri-state variable.
...
Also teach MachineLICM to avoid "speculation" when register pressure is high.
llvm-svn: 141744
2011-10-11 23:48:44 +00:00
Akira Hatanaka
0f4ecf7548
Change name of class to ArithOverflowR.
...
llvm-svn: 141743
2011-10-11 23:43:48 +00:00
Akira Hatanaka
8f0d549c4c
Define class ArithLogicI. Make 32-bit and 64-bit arithmetic and logical
...
instructions with two register operands derive from it.
llvm-svn: 141742
2011-10-11 23:38:52 +00:00
Bob Wilson
2d3ea9b2f2
Make this test more specific. There are 3 stats that matched "machine-licm".
...
llvm-svn: 141741
2011-10-11 23:34:31 +00:00