summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-13 00:20:39 +0000
committerEric Christopher <echristo@gmail.com>2014-06-13 00:20:39 +0000
commit030294e4c5c609d2f411947241a1c221db218837 (patch)
tree89848ddf139d4a86000ee24536d57b0c094dd237 /llvm/lib/Target/ARM/ARMSubtarget.h
parenta47f6804d294723f851515292db9a719bae48520 (diff)
downloadbcm5719-llvm-030294e4c5c609d2f411947241a1c221db218837.tar.gz
bcm5719-llvm-030294e4c5c609d2f411947241a1c221db218837.zip
Move ARMSelectionDAGInfo from the TargetMachine to the subtarget.
llvm-svn: 210862
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index 820d9f12fd6..7da80ec0d49 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -14,6 +14,7 @@
#ifndef ARMSUBTARGET_H
#define ARMSUBTARGET_H
+#include "ARMSelectionDAGInfo.h"
#include "MCTargetDesc/ARMMCTargetDesc.h"
#include "llvm/ADT/Triple.h"
#include "llvm/IR/DataLayout.h"
@@ -254,9 +255,11 @@ protected:
ARMSubtarget &initializeSubtargetDependencies(StringRef CPU, StringRef FS);
const DataLayout *getDataLayout() const { return &DL; }
+ const ARMSelectionDAGInfo *getSelectionDAGInfo() const { return &TSInfo; }
private:
const DataLayout DL;
+ ARMSelectionDAGInfo TSInfo;
void initializeEnvironment();
void resetSubtargetFeatures(StringRef CPU, StringRef FS);
OpenPOWER on IntegriCloud