summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-14 00:50:31 +0000
committerEric Christopher <echristo@gmail.com>2015-01-14 00:50:31 +0000
commit6e30cd95cbde1f8c78a581da36d6fe318112200b (patch)
treeaf19578f2b86cc370f07f5bd2bbace5508f84be0 /llvm/lib/MC
parentbc301a8ed4ce5ef4e69590c595bfc777cfbdafdf (diff)
downloadbcm5719-llvm-6e30cd95cbde1f8c78a581da36d6fe318112200b.tar.gz
bcm5719-llvm-6e30cd95cbde1f8c78a581da36d6fe318112200b.zip
Migrate ABIName to MCTargetOptions so that it can be shared between
the TargetMachine level and the MC level. llvm-svn: 225891
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCTargetOptions.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCTargetOptions.cpp b/llvm/lib/MC/MCTargetOptions.cpp
index 3093ba2b87e..1258d9e29f2 100644
--- a/llvm/lib/MC/MCTargetOptions.cpp
+++ b/llvm/lib/MC/MCTargetOptions.cpp
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/ADT/StringRef.h"
#include "llvm/MC/MCTargetOptions.h"
namespace llvm {
@@ -15,6 +16,10 @@ MCTargetOptions::MCTargetOptions()
: SanitizeAddress(false), MCRelaxAll(false), MCNoExecStack(false),
MCFatalWarnings(false), MCSaveTempLabels(false),
MCUseDwarfDirectory(false), ShowMCEncoding(false), ShowMCInst(false),
- AsmVerbose(false), DwarfVersion(0) {}
+ AsmVerbose(false), DwarfVersion(0), ABIName() {}
+
+StringRef MCTargetOptions::getABIName() const {
+ return ABIName;
+}
} // end namespace llvm
OpenPOWER on IntegriCloud