summaryrefslogtreecommitdiffstats
path: root/llvm/utils/opt-viewer/opt-viewer.py
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2017-01-27 06:39:01 +0000
committerAdam Nemet <anemet@apple.com>2017-01-27 06:39:01 +0000
commit742615e5a93ae5c4f3843d210291810669aac1c4 (patch)
tree6320fb6c785c83b30d69ed69c4596f71ce6e6cc6 /llvm/utils/opt-viewer/opt-viewer.py
parent55bfb497d246b200166f7b1bc35c473492aab3cb (diff)
downloadbcm5719-llvm-742615e5a93ae5c4f3843d210291810669aac1c4.tar.gz
bcm5719-llvm-742615e5a93ae5c4f3843d210291810669aac1c4.zip
[opt-viewer] Include the function in the remark key
Avoid uniquing remarks with different the inlining context (Function). llvm-svn: 293262
Diffstat (limited to 'llvm/utils/opt-viewer/opt-viewer.py')
-rwxr-xr-xllvm/utils/opt-viewer/opt-viewer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/opt-viewer/opt-viewer.py b/llvm/utils/opt-viewer/opt-viewer.py
index adcf3ce59ef..0c8c0413b28 100755
--- a/llvm/utils/opt-viewer/opt-viewer.py
+++ b/llvm/utils/opt-viewer/opt-viewer.py
@@ -123,7 +123,7 @@ class Remark(yaml.YAMLObject):
@property
def key(self):
- return (self.__class__, self.Pass, self.Name, self.File, self.Line, self.Column, self.message)
+ return (self.__class__, self.Pass, self.Name, self.File, self.Line, self.Column, self.Function, self.message)
class Analysis(Remark):
OpenPOWER on IntegriCloud