diff options
| author | Owen Anderson <resistor@mac.com> | 2010-08-06 18:33:48 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-08-06 18:33:48 +0000 |
| commit | a7aed18624f7783b7c31b06069c43bec89f1813f (patch) | |
| tree | 12c29122999e559e3d99f19d576e0245874372f3 /llvm/lib/Target/TargetData.cpp | |
| parent | e68958fcdfb02296df153598c1610cefd915d51e (diff) | |
| download | bcm5719-llvm-a7aed18624f7783b7c31b06069c43bec89f1813f.tar.gz bcm5719-llvm-a7aed18624f7783b7c31b06069c43bec89f1813f.zip | |
Reapply r110396, with fixes to appease the Linux buildbot gods.
llvm-svn: 110460
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
| -rw-r--r-- | llvm/lib/Target/TargetData.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 65f514c2647..406d288d183 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/lib/Target/TargetData.cpp @@ -226,13 +226,13 @@ void TargetData::init(StringRef Desc) { /// /// @note This has to exist, because this is a pass, but it should never be /// used. -TargetData::TargetData() : ImmutablePass(&ID) { +TargetData::TargetData() : ImmutablePass(ID) { report_fatal_error("Bad TargetData ctor used. " "Tool did not specify a TargetData to use?"); } TargetData::TargetData(const Module *M) - : ImmutablePass(&ID) { + : ImmutablePass(ID) { init(M->getDataLayout()); } |

