diff options
author | Craig Topper <craig.topper@intel.com> | 2019-06-02 01:36:48 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-06-02 01:36:48 +0000 |
commit | 78c794a70bc89dca8d9fec986b42135feacb605b (patch) | |
tree | 10e7300502d747f72e527f04a24c8fa0fa10c45f /llvm/unittests/CodeGen/MachineInstrTest.cpp | |
parent | 737de4d363ede4b90dd5609af0494fb39af53865 (diff) | |
download | llvm-78c794a70bc89dca8d9fec986b42135feacb605b.zip llvm-78c794a70bc89dca8d9fec986b42135feacb605b.tar.gz llvm-78c794a70bc89dca8d9fec986b42135feacb605b.tar.bz2 |
[X86] Fix several places that weren't passing what they though they were to MachineInstr::print
Over a year ago, MachineInstr gained a fourth boolean parameter that occurs
before the TII pointer. When this happened, several places started accidentally
passing TII into this boolean parameter instead of the TII parameter.
llvm-svn: 362312
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
-rw-r--r-- | llvm/unittests/CodeGen/MachineInstrTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/CodeGen/MachineInstrTest.cpp b/llvm/unittests/CodeGen/MachineInstrTest.cpp index bfdd940..21b5eb6 100644 --- a/llvm/unittests/CodeGen/MachineInstrTest.cpp +++ b/llvm/unittests/CodeGen/MachineInstrTest.cpp @@ -265,7 +265,8 @@ TEST(MachineInstrPrintingTest, DebugLocPrinting) { std::string str; raw_string_ostream OS(str); - MI->print(OS); + MI->print(OS, /*IsStandalone*/true, /*SkipOpers*/false, /*SkipDebugLoc*/false, + /*AddNewLine*/false); ASSERT_TRUE( StringRef(OS.str()).startswith("$noreg = UNKNOWN debug-location ")); ASSERT_TRUE( |