diff options
author | Fangrui Song <i@maskray.me> | 2020-11-02 12:32:06 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-11-02 12:32:07 -0800 |
commit | 395c8bed64509a951b94d30aa8caff034d7b542e (patch) | |
tree | 8549a980a1ad322a7d792416b4d8c833515ce24c /clang/lib/CodeGen/CodeGenModule.h | |
parent | 65eaec9bd3f23f113a195edf8f2d544ec8e34b4e (diff) | |
download | llvm-395c8bed64509a951b94d30aa8caff034d7b542e.zip llvm-395c8bed64509a951b94d30aa8caff034d7b542e.tar.gz llvm-395c8bed64509a951b94d30aa8caff034d7b542e.tar.bz2 |
[MC] Make MCStreamer aware of AsmParser's StartTokLoc
A SMLoc allows MCStreamer to report location-aware diagnostics, which
were previously done by adding SMLoc to various methods (e.g. emit*) in an ad-hoc way.
Since the file:line is most important, the column is less important and
the start token location suffices in many cases, this patch reverts
b7e7131af2dd7bdb03fa42a3bc1b4bc72ab95ce1
```
// old
symbol-binding-changed.s:6:8: error: local changed binding to STB_GLOBAL
.globl local
^
// new
symbol-binding-changed.s:6:1: error: local changed binding to STB_GLOBAL
.globl local
^
```
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D90511
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions