diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-14 23:22:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-14 23:22:57 +0000 |
commit | 184e65d363aa9148c3935ca445bb823e6e0d3617 (patch) | |
tree | a96cc2e85d6e328bc5623f14a4dcc1801cc3656e /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 6c6aea914ab003284feb2ad49627007dd525940e (diff) | |
download | llvm-184e65d363aa9148c3935ca445bb823e6e0d3617.zip llvm-184e65d363aa9148c3935ca445bb823e6e0d3617.tar.gz llvm-184e65d363aa9148c3935ca445bb823e6e0d3617.tar.bz2 |
Change Lexer::MeasureTokenLength to take a LangOptions reference.
This allows it to accurately measure tokens, so that we get:
t.cpp:8:13: error: unknown type name 'X'
static foo::X P;
~~~~~^
instead of the woefully inferior:
t.cpp:8:13: error: unknown type name 'X'
static foo::X P;
~~~~ ^
Most of this is just plumbing to push the reference around.
llvm-svn: 69099
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions