diff options
author | Kenneth Uildriks <kennethuil@gmail.com> | 2009-11-03 15:29:06 +0000 |
---|---|---|
committer | Kenneth Uildriks <kennethuil@gmail.com> | 2009-11-03 15:29:06 +0000 |
commit | b908f8ad6a38d989c7f769e329d778e563c398f4 (patch) | |
tree | 6dd0f41419123a02067e773182d0b7af19625947 /tools | |
parent | 7febee2a86d0e7eac45477c1529ed09e8b9a0491 (diff) | |
download | external_llvm-b908f8ad6a38d989c7f769e329d778e563c398f4.zip external_llvm-b908f8ad6a38d989c7f769e329d778e563c398f4.tar.gz external_llvm-b908f8ad6a38d989c7f769e329d778e563c398f4.tar.bz2 |
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')
-rw-r--r-- | tools/opt/opt.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 1950a73..12bb2ec 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) |