diff options
author | Dan Gohman <dan433584@gmail.com> | 2016-12-01 23:39:08 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2016-12-01 23:39:08 +0000 |
commit | 734c59d501315192e12d9b6450139f5b02c2f8cb (patch) | |
tree | cd664ffae652f7d60dedaf638a20709c9f0e8504 /clang/tools/c-index-test/c-index-test.c | |
parent | 399aea300f220ee3715cb22b32ac90bb57eca30d (diff) | |
download | bcm5719-llvm-734c59d501315192e12d9b6450139f5b02c2f8cb.tar.gz bcm5719-llvm-734c59d501315192e12d9b6450139f5b02c2f8cb.zip |
[MC] Refactor emitELFSize to make usage more consistent. NFC.
Move the cast<MCSymbolELF> inside emitELFSize, so that:
- it's done in one place instead of at each call
- it's more consistent with similar functions like EmitCOFFSafeSEH
- ambiguity between cast<> and dyn_cast<> is avoided (which also
eliminates an unnecessary dyn_cast call)
This also makes it easier to experiment with using ".size" directives on
non-ELF targets.
llvm-svn: 288437
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
0 files changed, 0 insertions, 0 deletions