aboutsummaryrefslogtreecommitdiff
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorKenneth Uildriks <kennethuil@gmail.com>2009-11-03 15:29:06 +0000
committerKenneth Uildriks <kennethuil@gmail.com>2009-11-03 15:29:06 +0000
commitb908f8ad6a38d989c7f769e329d778e563c398f4 (patch)
tree6dd0f41419123a02067e773182d0b7af19625947 /tools/opt/opt.cpp
parent7febee2a86d0e7eac45477c1529ed09e8b9a0491 (diff)
Make opt default to not adding a target data string and update tests that depend on target data to supply it within the test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 1950a73200..12bb2ec2c7 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -132,10 +132,6 @@ DefaultDataLayout("default-data-layout",
cl::desc("data layout string to use if not specified by module"),
cl::value_desc("layout-string"), cl::init(""));
-static cl::opt<bool>
-NoDefaultDataLayout("no-default-data-layout",
- cl::desc("no data layout assumptions unless module specifies data layout"));
-
// ---------- Define Printers for module and function passes ------------
namespace {
@@ -401,7 +397,7 @@ int main(int argc, char **argv) {
const std::string &ModuleDataLayout = M.get()->getDataLayout();
if (!ModuleDataLayout.empty())
TD = new TargetData(ModuleDataLayout);
- else if (!NoDefaultDataLayout)
+ else if (!DefaultDataLayout.empty())
TD = new TargetData(DefaultDataLayout);
if (TD)