mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user