Revision tags: llvmorg-3.7.1, llvmorg-3.7.1-rc2, llvmorg-3.7.1-rc1 |
|
#
ffec81ca |
| 04-Nov-2015 |
Eugene Zelenko <eugene.zelenko@gmail.com> |
Fix some Clang-tidy modernize warnings, other minor fixes.
Fixed warnings are: modernize-use-override, modernize-use-nullptr and modernize-redundant-void-arg.
Differential revision: http://reviews.
Fix some Clang-tidy modernize warnings, other minor fixes.
Fixed warnings are: modernize-use-override, modernize-use-nullptr and modernize-redundant-void-arg.
Differential revision: http://reviews.llvm.org/D14312
llvm-svn: 252087
show more ...
|
#
50f17235 |
| 15-Sep-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Eric has replied and has demanded the patch be reverted.
llvm-svn: 247702
|
#
153010c5 |
| 15-Sep-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary: This is the first patch in the series to migrate Triple's (which are ambiguous) to TargetTuple's
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary: This is the first patch in the series to migrate Triple's (which are ambiguous) to TargetTuple's (which aren't).
For the moment, TargetTuple simply passes all requests to the Triple object it holds. Once it has replaced Triple, it will start to implement the interface in a more suitable way.
This change makes some changes to the public C++ API. In particular, InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer() now take TargetTuples instead of Triples. The other public C++ API's have been left as-is for the moment to reduce patch size.
This commit also contains a trivial patch to clang to account for the C++ API change. Thanks go to Pavel Labath for fixing LLDB for me.
Reviewers: rengolin
Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D10969
llvm-svn: 247692
show more ...
|
#
c40de480 |
| 15-Sep-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Revert r247684 - Replace Triple with a new TargetTuple ...
LLDB needs to be updated in the same commit.
llvm-svn: 247686
|
#
18d4b0da |
| 15-Sep-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary: This is the first patch in the series to migrate Triple's (which are ambiguous) to TargetTuple's (which aren't).
F
Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary: This is the first patch in the series to migrate Triple's (which are ambiguous) to TargetTuple's (which aren't).
For the moment, TargetTuple simply passes all requests to the Triple object it holds. Once it has replaced Triple, it will start to implement the interface in a more suitable way.
This change makes some changes to the public C++ API. In particular, InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer() now take TargetTuples instead of Triples. The other public C++ API's have been left as-is for the moment to reduce patch size.
This commit also contains a trivial patch to clang to account for the C++ API change.
Reviewers: rengolin
Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D10969
llvm-svn: 247683
show more ...
|
#
2c007d05 |
| 14-Sep-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-mc] Better error handling in ENOENT case + test.
This is a follow up to r247518. As a general note, I think we could do a much better job testing for error conditions in tools. I already antic
[llvm-mc] Better error handling in ENOENT case + test.
This is a follow up to r247518. As a general note, I think we could do a much better job testing for error conditions in tools. I already anticipated in a previous mail, but while implementing this I noticed that the code coverage we have for error checking is pretty low. I can arbitrarily remove checks from several tools and the suite still passes.
Differential Revision: http://reviews.llvm.org/D12846
llvm-svn: 247582
show more ...
|
#
669e5bf5 |
| 13-Sep-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-mc] More meaningful error if input file doesn't exist.
Before we just printed on stderr the program name. Now at least we print the name of the file that doesn't exist. There's probably room f
[llvm-mc] More meaningful error if input file doesn't exist.
Before we just printed on stderr the program name. Now at least we print the name of the file that doesn't exist. There's probably room for improvement of error handling in llvm-mc (and the tools in general), but still this is a step forward.
llvm-svn: 247518
show more ...
|
Revision tags: llvmorg-3.7.0, llvmorg-3.7.0-rc4, llvmorg-3.7.0-rc3, studio-1.4, llvmorg-3.7.0-rc2, llvmorg-3.7.0-rc1, llvmorg-3.6.2, llvmorg-3.6.2-rc1 |
|
#
f27fa2bb |
| 17-Jun-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use named temporaries for directional labels.
Directional labels can show up in symbol tables (and we have a llvm-mc test for that). Given that, we need to make sure they are named.
With that out o
Use named temporaries for directional labels.
Directional labels can show up in symbol tables (and we have a llvm-mc test for that). Given that, we need to make sure they are named.
With that out of the way, use setUseNamesOnTempLabels in llvm-mc so that it too benefits from the memory saving.
llvm-svn: 239914
show more ...
|
#
8d8b13dc |
| 16-Jun-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Recommit r239721: Replace string GNU Triples with llvm::Triple in InitMCObjectFileInfo. NFC.
Summary: This affects other tools so the previous C++ API has been retained as a deprecated function for
Recommit r239721: Replace string GNU Triples with llvm::Triple in InitMCObjectFileInfo. NFC.
Summary: This affects other tools so the previous C++ API has been retained as a deprecated function for the moment. Clang has been updated with a trivial patch (not covered by the pre-commit review) to avoid breaking -Werror builds. Other in-tree tools will be fixed with similar patches.
This continues the patch series to eliminate StringRef forms of GNU triples from the internals of LLVM that began in r239036.
The first time this was committed it accidentally fixed an inconsistency in triples in llvm-mc and this caused a failure. This inconsistency was fixed in r239808.
Reviewers: rengolin
Reviewed By: rengolin
Subscribers: llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D10366
llvm-svn: 239812
show more ...
|
#
c535d93b |
| 16-Jun-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
[llvm-mc] The object form of the GNU triple should be the same as the string form.
Summary: GetTarget() may modify TripleName without also updating TheTriple. This can lead to situations where the M
[llvm-mc] The object form of the GNU triple should be the same as the string form.
Summary: GetTarget() may modify TripleName without also updating TheTriple. This can lead to situations where the MCObjectStreamer has a different triple to the rest of LLVM.
This inconsistency caused sparc-little-endian.s to pass on Windows because most of LLVM had sparcel-pc-win32 while MCObjectStreamer had "". I believe the same kind of thing was also true of Darwin.
Reviewers: rengolin
Reviewed By: rengolin
Subscribers: llvm-commits, rengolin, rafael
Differential Revision: http://reviews.llvm.org/D10450
llvm-svn: 239808
show more ...
|
#
fa555dc7 |
| 15-Jun-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Revert r239721 - Replace string GNU Triples with llvm::Triple in InitMCObjectFileInfo. NFC.
It appears to cause sparc-little-endian.s to assert on Windows and Darwin.
llvm-svn: 239724
|
#
d6d12a11 |
| 15-Jun-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Replace string GNU Triples with llvm::Triple in InitMCObjectFileInfo. NFC.
Summary: This affects other tools so the previous C++ API has been retained as a deprecated function for the moment. Clang
Replace string GNU Triples with llvm::Triple in InitMCObjectFileInfo. NFC.
Summary: This affects other tools so the previous C++ API has been retained as a deprecated function for the moment. Clang has been updated with a trivial patch (not covered by the pre-commit review) to avoid breaking -Werror builds. Other in-tree tools will be fixed with similar trivial patches.
This continues the patch series to eliminate StringRef forms of GNU triples from the internals of LLVM that began in r239036.
Reviewers: rengolin
Reviewed By: rengolin
Subscribers: llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D10366
llvm-svn: 239721
show more ...
|
#
229a1e69 |
| 07-Jun-2015 |
Colin LeMahieu <colinl@codeaurora.org> |
Teaching llvm-mc how to understand the defsym command line option. This allows integer-constant symbols to be defined on the command line and used during assembly.
llvm-svn: 239240
|
Revision tags: llvmorg-3.6.1, llvmorg-3.6.1-rc1 |
|
#
5560a4cf |
| 14-Apr-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use raw_pwrite_stream in the object writer/streamer.
The ELF object writer will take advantage of that in the next commit.
llvm-svn: 234950
|
#
5682ce2c |
| 09-Apr-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Simplify use of formatted_raw_ostream.
formatted_raw_ostream is a wrapper over another stream to add column and line number tracking.
It is used only for asm printing.
This patch moves the its cre
Simplify use of formatted_raw_ostream.
formatted_raw_ostream is a wrapper over another stream to add column and line number tracking.
It is used only for asm printing.
This patch moves the its creation down to where we know we are printing assembly. This has the following advantages:
* Simpler lifetime management: std::unique_ptr * We don't compute column and line number of object files :-)
llvm-svn: 234535
show more ...
|
#
f8019408 |
| 31-Mar-2015 |
Eric Christopher <echristo@gmail.com> |
Replace the MCSubtargetInfo parameter with a Triple when creating an MCInstPrinter. Update all callers and use where we wanted a Triple previously.
llvm-svn: 233648
|
#
36a15cb9 |
| 20-Mar-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't declare all text sections at the start of the .s
The code this patch removes was there to make sure the text sections went before the dwarf sections. That is necessary because MachO uses offse
Don't declare all text sections at the start of the .s
The code this patch removes was there to make sure the text sections went before the dwarf sections. That is necessary because MachO uses offsets relative to the start of the file, so adding a section can change relaxations.
The dwarf sections were being printed at the start just to produce symbols pointing at the start of those sections.
The underlying issue was fixed in r231898. The dwarf sections are now printed when they are about to be used, which is after we printed the text sections.
To make sure we don't regress, the patch makes the MachO streamer assert if CodeGen puts anything unexpected after the DWARF sections.
llvm-svn: 232842
show more ...
|
Revision tags: llvmorg-3.5.2, llvmorg-3.5.2-rc1 |
|
#
f696df11 |
| 16-Mar-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Pass in a "const Triple &T" instead of a raw StringRef.
llvm-svn: 232429
|
#
0169e42c |
| 10-Mar-2015 |
Eric Christopher <echristo@gmail.com> |
Remove the use of the subtarget in MCCodeEmitter creation and update all ports accordingly. Required a couple of small rewrites in handling subtarget features during creation in PPC.
llvm-svn: 231861
|
Revision tags: llvmorg-3.6.0 |
|
#
f4498a4f |
| 19-Feb-2015 |
Peter Collingbourne <peter@pcc.me.uk> |
llvm-mc: Use Target::createNullStreamer to fix crashes on target-specific asm directives.
llvm-svn: 229798
|
Revision tags: llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2 |
|
#
4e05fc3f |
| 12-Dec-2014 |
Craig Topper <craig.topper@gmail.com> |
Pass output stream to AsLexInput instead of the whole tool_output_file.
llvm-svn: 224109
|
#
8c8ee4dd |
| 12-Dec-2014 |
Craig Topper <craig.topper@gmail.com> |
Use unique_ptr to remove an explicit delete. Change return type to pass the unique_ptr to caller.
llvm-svn: 224108
|
Revision tags: llvmorg-3.5.1-rc1 |
|
#
7b61ddfa |
| 15-Oct-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Simplify handling of --noexecstack by using getNonexecutableStackSection.
llvm-svn: 219799
|
Revision tags: llvmorg-3.5.0, llvmorg-3.5.0-rc4 |
|
#
3fd1e993 |
| 25-Aug-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Modernize raw_fd_ostream's constructor a bit.
Take a StringRef instead of a "const char *". Take a "std::error_code &" instead of a "std::string &" for error.
A create static method would be even b
Modernize raw_fd_ostream's constructor a bit.
Take a StringRef instead of a "const char *". Take a "std::error_code &" instead of a "std::string &" for error.
A create static method would be even better, but this patch is already a bit too big.
llvm-svn: 216393
show more ...
|
#
1961f14c |
| 21-Aug-2014 |
David Blaikie <dblaikie@gmail.com> |
Explicitly pass ownership of the MemoryBuffer to AddNewSourceBuffer using std::unique_ptr
llvm-svn: 216223
|