diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-14 18:19:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-14 18:19:52 +0000 |
commit | 1ab75949460b92df31b911ea9f99a3e32d779e3f (patch) | |
tree | 432a54c2dcebf6c297ef06b65e212f4e27a49675 /tools/llvm-mc/AsmParser.h | |
parent | 2247276c6f97abf8ebb6ea0a566e6fed5a4c4fe2 (diff) |
llvm-mc: Support escaped characters in string literals (for .ascii and .asciz)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/AsmParser.h')
-rw-r--r-- | tools/llvm-mc/AsmParser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-mc/AsmParser.h b/tools/llvm-mc/AsmParser.h index 55efa84bc7..a19f35f64a 100644 --- a/tools/llvm-mc/AsmParser.h +++ b/tools/llvm-mc/AsmParser.h @@ -135,6 +135,10 @@ private: bool ParseDirectiveFile(SMLoc DirectiveLoc); // ".file" bool ParseDirectiveLine(SMLoc DirectiveLoc); // ".line" bool ParseDirectiveLoc(SMLoc DirectiveLoc); // ".loc" + + /// ParseEscapedString - Parse the current token as a string which may include + /// escaped characters and return the string contents. + bool ParseEscapedString(std::string &Data); }; } // end namespace llvm |