projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
143d0f7
)
Add comment.
author
Chad Rosier
<mcrosier@apple.com>
Fri, 21 Sep 2012 21:08:46 +0000
(21:08 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Fri, 21 Sep 2012 21:08:46 +0000
(21:08 +0000)
llvm-svn: 164415
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index
e4c883f
..
28cf5d3
100644
(file)
--- a/
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@
-202,7
+202,8
@@
struct X86Operand : public MCParsedAsmOperand {
SMLoc getStartLoc() const { return StartLoc; }
/// getEndLoc - Get the location of the last token of this operand.
SMLoc getEndLoc() const { return EndLoc; }
-
+ /// getLocRange - Get the range between the first and last token of this
+ /// operand.
SMRange getLocRange() const { return SMRange(StartLoc, EndLoc); }
virtual void print(raw_ostream &OS) const {}