| Commit message (Collapse) | Author | Age | Files | Lines | 
| | 
| 
| 
|  | 
llvm-svn: 184084
 | 
| | 
| 
| 
| 
| 
| 
|  | 
llvm-ar is the only tool that needs to write archive files. Every other tool
should be able to use the lib/Object interface.
llvm-svn: 184083
 | 
| | 
| 
| 
| 
| 
|  | 
(Used with image list, etc.)
llvm-svn: 184082
 | 
| | 
| 
| 
|  | 
llvm-svn: 184081
 | 
| | 
| 
| 
|  | 
llvm-svn: 184080
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
This adds a bunch of llvm::opt name specifiers to all the uses of types
from that namespace.
Reviewers: espindola
Differential Revision: http://llvm-reviews.chandlerc.com/D983
llvm-svn: 184079
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
indentation of an expression after a line break.
Summary:
E.g. the second line in 
return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
           b; //
is indented 4 characters more than in
return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
       b;
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D984
llvm-svn: 184078
 | 
| | 
| 
| 
|  | 
llvm-svn: 184077
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Summary:
Selectively propagate the information about token kind in
WhitespaceManager::replaceWhitespaceInToken.For correct alignment of new
segments of line comments in order to align them correctly. Don't set
BreakBeforeParameter in breakProtrudingToken for line comments, as it introduces
a break after the _next_ parameter. Added tests for related functions.
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D980
llvm-svn: 184076
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
The untemplated implementation of getParents() doesn't need to be in a
header file.
RecursiveASTVisitor.h is full of repeated macro expansion.  Moving this
include to ASTContext.cpp speeds up compilation of
LambdaMangleContext.cpp, a small C++ file with few includes, from 3.7s
to 2.8s for me locally.  I haven't measured a full build, but it can't
hurt.
I had to fix a few static analyzer files that were depending on
transitive includes of C++ AST headers.
Reviewers: rsmith, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D982
llvm-svn: 184075
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
This broke for example the 'not' utility, if a directory called
'FileCheck' is executable and in the path before the actual 'FileCheck'.
This patch steals the implementation of the "old" PathV1 canExecute
implementation:
- checks for R_OK (file readable): this is necessary for executing
  scripts; we should not regress here unless we have good reasons
- checks for S_ISREG; if we want to get rid of this, we'd need to
  change all callers who already made the assumption when depending
  on Path V1.
llvm-svn: 184074
 | 
| | 
| 
| 
|  | 
llvm-svn: 184073
 | 
| | 
| 
| 
| 
| 
| 
|  | 
llvm-objdump should provide some way of printing out the addends present in the
.rela sections for debugging purposes if nothing else.
llvm-svn: 184072
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
This change adds functionality to add more sections like .gcc_except_table,
.data.rel.local, .data.rel.ro into the default section map, so that they are
all merged into appropriate output sections.
This also makes c++ static binaries comparable to what you get with the default
linker.
Adds a test for testing the functionality.
llvm-svn: 184071
 | 
| | 
| 
| 
|  | 
llvm-svn: 184070
 | 
| | 
| 
| 
| 
| 
|  | 
an asm label.
llvm-svn: 184069
 | 
| | 
| 
| 
| 
| 
|  | 
deprecated.
llvm-svn: 184068
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
MachineInstrs
Frame index handling is now target-agnostic, so delete the target hooks
for creation & asm printing of target-specific addressing in DBG_VALUEs
and any related functions.
llvm-svn: 184067
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Rather than using the full power of target-specific addressing modes in
DBG_VALUEs with Frame Indicies, simply use Frame Index + Offset. This
reduces the complexity of debug info handling down to two
representations of values (reg+offset and frame index+offset) rather
than three or four.
Ideally we could ensure that frame indicies had been eliminated by the
time we reached an assembly or dwarf generation, but I haven't spent the
time to figure out where the FIs are leaking through into that & whether
there's a good place to convert them. Some FI+offset=>reg+offset
conversion is done (see PrologEpilogInserter, for example) which is
necessary for some SelectionDAG assumptions about registers, I believe,
but it might be possible to make this a more thorough conversion &
ensure there are no remaining FIs no matter how instruction selection
is performed.
llvm-svn: 184066
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
This currently unused function appeared to be asserting in the wrong
direction - DebugValues are never definitions of registers, only uses.
Curiously we don't perform any of these checks for the more common (&
actually used) case of MachineOperand::CreateReg (or other Create
functions).
llvm-svn: 184065
 | 
| | 
| 
| 
| 
| 
| 
|  | 
This update fixes the test cases to give correct results with the isl version
we are currently using.
llvm-svn: 184064
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
With this patch, it can now resolve relocations in the same output file.
"Hello world" program does not still work because call to the DLL routine
is not supported yet.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D985
llvm-svn: 184063
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
writers.
Summary: I'm planning to use AtomLayout in WriterPECOFF.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D977
llvm-svn: 184062
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
non-ELF writers.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D977
llvm-svn: 184061
 | 
| | 
| 
| 
| 
| 
|  | 
executables(Fix comment from espindola)
llvm-svn: 184060
 | 
| | 
| 
| 
|  | 
llvm-svn: 184059
 | 
| | 
| 
| 
|  | 
llvm-svn: 184058
 | 
| | 
| 
| 
|  | 
llvm-svn: 184057
 | 
| | 
| 
| 
|  | 
llvm-svn: 184056
 | 
| | 
| 
| 
|  | 
llvm-svn: 184055
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
and a '!defined(X)' if we find a broken header guard. This is suboptimal; we
should point the diagnostic at the 'X' token not the 'if' token, but it fixes
the crash.
llvm-svn: 184054
 | 
| | 
| 
| 
|  | 
llvm-svn: 184053
 | 
| | 
| 
| 
| 
| 
|  | 
Patch by Robert Wilhelm.
llvm-svn: 184052
 | 
| | 
| 
| 
| 
| 
|  | 
comment.
llvm-svn: 184051
 | 
| | 
| 
| 
|  | 
llvm-svn: 184050
 | 
| | 
| 
| 
|  | 
llvm-svn: 184049
 | 
| | 
| 
| 
| 
| 
|  | 
previously overlooked part: implicitly converting array sizes to size_t, rather than contextually converting them to some unique type.
llvm-svn: 184048
 | 
| | 
| 
| 
| 
| 
|  | 
Found by the new -Wheader-guard warning.
llvm-svn: 184047
 | 
| | 
| 
| 
| 
| 
|  | 
don't contain +0 offsets
llvm-svn: 184046
 | 
| | 
| 
| 
| 
| 
|  | 
offset when it's zero
llvm-svn: 184045
 | 
| | 
| 
| 
|  | 
llvm-svn: 184044
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
by ensuring DiagnoseUseOfDecl is called both on the found decl and the
decl being used (i.e the specialization in the case of member templates) whenever they are different.
Per the exchange captured in
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130610/081636.html
a more comprehensive fix that allows both decls to be passed into DiagnoseUseOfDecl is (or should be) forthcoming relatively soon.
llvm-svn: 184043
 | 
| | 
| 
| 
|  | 
llvm-svn: 184042
 | 
| | 
| 
| 
|  | 
llvm-svn: 184041
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Just like on Linux, FreeBSD/armv6 assumes the system supports
ldrex/strex unconditionally. It is also used by the kernel. We can
therefore enable support for it, like we do on Linux.
While there, change one of the unit tests to explicitly test against
armv5 instead of armv7, as it actually tests whether libcalls are
emitted.
llvm-svn: 184040
 | 
| | 
| 
| 
|  | 
llvm-svn: 184039
 | 
| | 
| 
| 
|  | 
llvm-svn: 184038
 | 
| | 
| 
| 
|  | 
llvm-svn: 184037
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
Archive file in Windows has file extension of ".lib" but the file format is
in fact the same as Unix. It's an ar archive holding multiple .obj files.
The existing archive reader can read .lib files.
llvm-svn: 184036
 | 
| | 
| 
| 
|  | 
llvm-svn: 184035
 |