aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CTargetMachine.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-03 17:40:25 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-03 17:40:25 +0000
commitd1a919e1396ce4bc424f4f24bb69d79a2afd7ea0 (patch)
tree1da92c1fff188dfd8ffb675a7f895a5fbdc8c27f /lib/Target/CBackend/CTargetMachine.h
parent2caf1b212e2db36c52f3a7c3e391ea2800802c60 (diff)
Change C, CBE, MSIL to not provide target data via getTargetData().
- The theory is these should never actually be called, since these boil down to passes which can access the target data via the standard mechanism. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CTargetMachine.h')
-rw-r--r--lib/Target/CBackend/CTargetMachine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CTargetMachine.h b/lib/Target/CBackend/CTargetMachine.h
index 72146a80cb..ffd033f198 100644
--- a/lib/Target/CBackend/CTargetMachine.h
+++ b/lib/Target/CBackend/CTargetMachine.h
@@ -32,7 +32,7 @@ struct CTargetMachine : public TargetMachine {
CodeGenFileType FileType,
CodeGenOpt::Level OptLevel);
- virtual const TargetData *getTargetData() const { return &DataLayout; }
+ virtual const TargetData *getTargetData() const { return 0; }
};
extern Target TheCBackendTarget;