diff options
| author | Renato Golin <renato.golin@linaro.org> | 2015-11-09 12:40:41 +0000 |
|---|---|---|
| committer | Renato Golin <renato.golin@linaro.org> | 2015-11-09 12:40:41 +0000 |
| commit | 4854d80c39270b9cd1e72b3e399045fbab768b6c (patch) | |
| tree | 18859611b368f31a9afad3dd7f3dbcf5f6c458cc /clang/include | |
| parent | 6d435f12f0ef0be987476a3e18215fbcd182bcd1 (diff) | |
| download | bcm5719-llvm-4854d80c39270b9cd1e72b3e399045fbab768b6c.tar.gz bcm5719-llvm-4854d80c39270b9cd1e72b3e399045fbab768b6c.zip | |
[EABI] Add Clang support for -meabi flag
The -meabi flag to control LLVM EABI version.
Without '-meabi' or with '-meabi default' imply LLVM triple default.
With '-meabi gnu' sets EABI GNU.
With '-meabi 4' or '-meabi 5' set EABI version 4 and 5 respectively.
A similar patch was introduced in LLVM.
Patch by Vinicius Tinti.
llvm-svn: 252463
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/Driver/Options.td | 2 | ||||
| -rw-r--r-- | clang/include/clang/Frontend/CodeGenOptions.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 65dd87ce438..254dfcfb3c9 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -1281,6 +1281,8 @@ def mstack_probe_size : Joined<["-"], "mstack-probe-size=">, Group<m_Group>, Fla HelpText<"Set the stack probe size">; def mthread_model : Separate<["-"], "mthread-model">, Group<m_Group>, Flags<[CC1Option]>, HelpText<"The thread model to use, e.g. posix, single (posix by default)">; +def meabi : Separate<["-"], "meabi">, Group<m_Group>, Flags<[CC1Option]>, + HelpText<"Set EABI type, e.g. 4, 5 or gnu (default depends on triple)">; def mmmx : Flag<["-"], "mmmx">, Group<m_x86_Features_Group>; def mno_3dnowa : Flag<["-"], "mno-3dnowa">, Group<m_x86_Features_Group>; diff --git a/clang/include/clang/Frontend/CodeGenOptions.h b/clang/include/clang/Frontend/CodeGenOptions.h index 8e8e65f3f7b..4923192169c 100644 --- a/clang/include/clang/Frontend/CodeGenOptions.h +++ b/clang/include/clang/Frontend/CodeGenOptions.h @@ -167,6 +167,9 @@ public: /// Name of the profile file to use as input for -fprofile-instr-use std::string InstrProfileInput; + /// The EABI version to use + std::string EABIVersion; + /// A list of file names passed with -fcuda-include-gpubinary options to /// forward to CUDA runtime back-end for incorporating them into host-side /// object file. |

