summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul_robinson@playstation.sony.com>2016-02-05 23:23:25 +0000
committerPaul Robinson <paul_robinson@playstation.sony.com>2016-02-05 23:23:25 +0000
commit9ef13db4ddc2ea9be029cc74d535fc288baf8445 (patch)
tree4c9c167c568d1e583e426c315c89c3880da38e55 /clang/lib/CodeGen/BackendUtil.cpp
parentf868d0b2383d8f7da75602a180dbe478f5e71770 (diff)
downloadbcm5719-llvm-9ef13db4ddc2ea9be029cc74d535fc288baf8445.tar.gz
bcm5719-llvm-9ef13db4ddc2ea9be029cc74d535fc288baf8445.zip
Eliminate an unnecessary enum, use the LLVM version. NFC
llvm-svn: 259950
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index d8f96db55a7..032b2961c15 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -558,19 +558,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
Options.DataSections = CodeGenOpts.DataSections;
Options.UniqueSectionNames = CodeGenOpts.UniqueSectionNames;
Options.EmulatedTLS = CodeGenOpts.EmulatedTLS;
- switch (CodeGenOpts.getDebuggerTuning()) {
- case CodeGenOptions::DebuggerKindGDB:
- Options.DebuggerTuning = llvm::DebuggerKind::GDB;
- break;
- case CodeGenOptions::DebuggerKindLLDB:
- Options.DebuggerTuning = llvm::DebuggerKind::LLDB;
- break;
- case CodeGenOptions::DebuggerKindSCE:
- Options.DebuggerTuning = llvm::DebuggerKind::SCE;
- break;
- default:
- break;
- }
+ Options.DebuggerTuning = CodeGenOpts.getDebuggerTuning();
Options.MCOptions.MCRelaxAll = CodeGenOpts.RelaxAll;
Options.MCOptions.MCSaveTempLabels = CodeGenOpts.SaveTempLabels;
OpenPOWER on IntegriCloud