summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2018-07-25 07:07:43 +0000
committerSimon Atanasyan <simon@atanasyan.com>2018-07-25 07:07:43 +0000
commitb5244592882f296097bcd5508630b73311d0ddde (patch)
treea5a4a22d0466ba76dcc8202f37313c80cd97e8ab /llvm/tools/llvm-readobj/llvm-readobj.cpp
parent4eab1ba6196b9d5dd8b5980d076e52b0672cb3bd (diff)
downloadbcm5719-llvm-b5244592882f296097bcd5508630b73311d0ddde.tar.gz
bcm5719-llvm-b5244592882f296097bcd5508630b73311d0ddde.zip
[mips] Replace custom parsing logic for data directives by the `addAliasForDirective`
The target independent AsmParser doesn't recognise .hword, .word, .dword which are required for Mips. Currently MipsAsmParser recognises these through dispatch to MipsAsmParser::parseDataDirective. This contains equivalent logic to AsmParser::parseDirectiveValue. This patch allows reuse of AsmParser::parseDirectiveValue by making use of addAliasForDirective to support .hword, .word and .dword. Original patch provided by Alex Bradbury at D47001 was modified to fix handling of microMIPS symbols. The `AsmParser::parseDirectiveValue` calls either `EmitIntValue` or `EmitValue`. In this patch we override `EmitIntValue` in the `MipsELFStreamer` to clear a pending set of microMIPS symbols. Differential revision: https://reviews.llvm.org/D49539 llvm-svn: 337893
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud