diff options
author | Alex Bradbury <asb@lowrisc.org> | 2018-05-11 17:30:28 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2018-05-11 17:30:28 +0000 |
commit | bca0c3cdb6d49822dbfbcac0bd2719e17e08f309 (patch) | |
tree | 7304ed476ecdabf44c65567bd77fde8a98deb0b3 /llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp | |
parent | 0d7c37756bc3609d9a1f3a9d9ba79842acca1e4a (diff) | |
download | bcm5719-llvm-bca0c3cdb6d49822dbfbcac0bd2719e17e08f309.tar.gz bcm5719-llvm-bca0c3cdb6d49822dbfbcac0bd2719e17e08f309.zip |
[RISCV] Support .option rvc and norvc assembler directives
These directives allow the 'C' (compressed) extension to be enabled/disabled
within a single file.
Differential Revision: https://reviews.llvm.org/D45864
Patch by Kito Cheng
llvm-svn: 332107
Diffstat (limited to 'llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp')
-rw-r--r-- | llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp index 243f8ed7fb5..6428b11cfe9 100644 --- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp +++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp @@ -37,3 +37,6 @@ RISCVTargetELFStreamer::RISCVTargetELFStreamer(MCStreamer &S, MCELFStreamer &RISCVTargetELFStreamer::getStreamer() { return static_cast<MCELFStreamer &>(Streamer); } + +void RISCVTargetELFStreamer::emitDirectiveOptionRVC() {} +void RISCVTargetELFStreamer::emitDirectiveOptionNoRVC() {} |