diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-06-13 20:44:02 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-06-13 20:44:02 +0000 |
commit | 529fb8b5cd3e8ab55f7a796a8aeb51c17ac7f34a (patch) | |
tree | 6f45fea43fb213e2496bd755f6cc334d52bccbd6 /lib/IR/LegacyPassManager.cpp | |
parent | a9ac180f032890c5770a1997af4f0a8af3e5443e (diff) |
Revert r334649 "[Timers] Use the pass argument name for JSON keys in time-passes"
This reverts commit r334649.
This breaks a test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/LegacyPassManager.cpp')
-rw-r--r-- | lib/IR/LegacyPassManager.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/IR/LegacyPassManager.cpp b/lib/IR/LegacyPassManager.cpp index 46bfba7f5a0..b04787cb30e 100644 --- a/lib/IR/LegacyPassManager.cpp +++ b/lib/IR/LegacyPassManager.cpp @@ -545,11 +545,7 @@ public: Timer *&T = TimingData[P]; if (!T) { StringRef PassName = P->getPassName(); - StringRef PassArgument; - if (const PassInfo *PI = Pass::lookupPassInfo(P->getPassID())) - PassArgument = PI->getPassArgument(); - T = new Timer(PassArgument.empty() ? PassName : PassArgument, PassName, - TG); + T = new Timer(PassName, PassName, TG); } return T; } |