aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorYuka Takahashi <yukatkh@gmail.com>2017-07-01 07:57:23 +0000
committerYuka Takahashi <yukatkh@gmail.com>2017-07-01 07:57:23 +0000
commitdc771509a45f6a3e9d2553996ce55dbcf93bff3b (patch)
treeba09114ac3ecce9391efccf7acd506018a60e6e8 /clang/lib/CodeGen/BackendUtil.cpp
parentef1c2ba22a8dd8d56f4281d36e5a241c671084a2 (diff)
downloadllvm-dc771509a45f6a3e9d2553996ce55dbcf93bff3b.zip
llvm-dc771509a45f6a3e9d2553996ce55dbcf93bff3b.tar.gz
llvm-dc771509a45f6a3e9d2553996ce55dbcf93bff3b.tar.bz2
Changed Opts.EABIVersion type string to llvm::EABI enum class
Summary: Changed EABIVersion type from string to llvm::EABI. It seems it was just a typo and this is intended implementation. Differential Revision: https://reviews.llvm.org/D34595 llvm-svn: 306953
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index b528cb4..9b3850a 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -415,11 +415,7 @@ static void initTargetOptions(llvm::TargetOptions &Options,
Options.RelaxELFRelocations = CodeGenOpts.RelaxELFRelocations;
// Set EABI version.
- Options.EABIVersion = llvm::StringSwitch<llvm::EABI>(TargetOpts.EABIVersion)
- .Case("4", llvm::EABI::EABI4)
- .Case("5", llvm::EABI::EABI5)
- .Case("gnu", llvm::EABI::GNU)
- .Default(llvm::EABI::Default);
+ Options.EABIVersion = TargetOpts.EABIVersion;
if (LangOpts.SjLjExceptions)
Options.ExceptionModel = llvm::ExceptionHandling::SjLj;