summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmParser.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-14 18:19:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-14 18:19:52 +0000
commitef668c169b67c56f7cbb41a317adf0ceb939f0a1 (patch)
treece6c99a80d3c14e330033c4ba11d3e92feb6cb62 /llvm/tools/llvm-mc/AsmParser.h
parent75821f7c6947327b178a4edf260c813ab6e59dd9 (diff)
downloadbcm5719-llvm-ef668c169b67c56f7cbb41a317adf0ceb939f0a1.tar.gz
bcm5719-llvm-ef668c169b67c56f7cbb41a317adf0ceb939f0a1.zip
llvm-mc: Support escaped characters in string literals (for .ascii and .asciz)
llvm-svn: 79010
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.h')
-rw-r--r--llvm/tools/llvm-mc/AsmParser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.h b/llvm/tools/llvm-mc/AsmParser.h
index 55efa84bc7b..a19f35f64aa 100644
--- a/llvm/tools/llvm-mc/AsmParser.h
+++ b/llvm/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
OpenPOWER on IntegriCloud