Change C, CBE, MSIL to not provide target data via getTargetData().
authorDaniel Dunbar <daniel@zuster.org>
Mon, 3 Aug 2009 17:40:25 +0000 (17:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 3 Aug 2009 17:40:25 +0000 (17:40 +0000)
 - 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

lib/Target/CBackend/CTargetMachine.h
lib/Target/CppBackend/CPPTargetMachine.h
lib/Target/MSIL/MSILWriter.cpp

index 72146a80cb9bd83388f24793d8a4f1bb0dbfa2f6..ffd033f1980e35b5d9b2869d5bbd994503285f0e 100644 (file)
@@ -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;
index c7c8a7e04a4723b58bebae28eb9398b611bdf6d6..c838b389b975ab7a82e2f2a6c314c30ea2dc2c23 100644 (file)
@@ -34,7 +34,7 @@ struct CPPTargetMachine : public TargetMachine {
                                         CodeGenFileType FileType,
                                         CodeGenOpt::Level OptLevel);
 
-  virtual const TargetData *getTargetData() const { return &DataLayout; }
+  virtual const TargetData *getTargetData() const { return 0; }
 };
 
 extern Target TheCppBackendTarget;
index fa47a8f1135d8cb42b74e11142f5674a0f2cbf80..873f9b7125bbc8e920d6fb0bdbc783abb7df1d88 100644 (file)
@@ -42,7 +42,7 @@ namespace llvm {
                                           CodeGenFileType FileType,
                                           CodeGenOpt::Level OptLevel);
 
-    virtual const TargetData *getTargetData() const { return &DataLayout; }
+    virtual const TargetData *getTargetData() const { return 0; }
   };
 }