diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-27 21:49:56 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-27 21:49:56 +0000 |
commit | 9a7e2ccf574368b60455f8c8975030475a1f3ce0 (patch) | |
tree | deb12fe8d94ce3cf58babf569d0a8a2511d347cf /include/llvm | |
parent | 5a4e2a47b3444bf92caffcbd2371cf18845d83ba (diff) | |
download | external_llvm-9a7e2ccf574368b60455f8c8975030475a1f3ce0.zip external_llvm-9a7e2ccf574368b60455f8c8975030475a1f3ce0.tar.gz external_llvm-9a7e2ccf574368b60455f8c8975030475a1f3ce0.tar.bz2 |
llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API.
- My DFS traversal of LLVM is, at least for now, nearly complete! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 6 | ||||
-rw-r--r-- | include/llvm/Target/TargetAsmParser.h | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index 67fe8d4..db658d2 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -22,6 +22,7 @@ namespace llvm { class MCInst; class MCSection; class MCSymbol; + class StringRef; class raw_ostream; /// MCStreamer - Streaming machine code generation interface. This interface @@ -166,12 +167,11 @@ namespace llvm { /// @name Generating Data /// @{ - /// EmitBytes - Emit @param Length bytes starting at @param Data into the - /// output. + /// EmitBytes - Emit the bytes in @param Data into the output. /// /// This is used to implement assembler directives such as .byte, .ascii, /// etc. - virtual void EmitBytes(const char *Data, unsigned Length) = 0; + virtual void EmitBytes(const StringRef &Data) = 0; /// EmitValue - Emit the expression @param Value into the output as a native /// integer of the given @param Size bytes. diff --git a/include/llvm/Target/TargetAsmParser.h b/include/llvm/Target/TargetAsmParser.h index c179991..5e55693 100644 --- a/include/llvm/Target/TargetAsmParser.h +++ b/include/llvm/Target/TargetAsmParser.h @@ -13,6 +13,7 @@ namespace llvm { class MCAsmParser; class MCInst; +class StringRef; class Target; /// TargetAsmParser - Generic interface to target specific assembly parsers. @@ -42,7 +43,7 @@ public: /// \param Name - The instruction name. /// \param Inst [out] - On success, the parsed instruction. /// \return True on failure. - virtual bool ParseInstruction(MCAsmParser &AP, const char *Name, + virtual bool ParseInstruction(MCAsmParser &AP, const StringRef &Name, MCInst &Inst) = 0; }; |