summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCAsmInfo.h
diff options
context:
space:
mode:
authorSean Hunt <scshunt@csclub.uwaterloo.ca>2012-04-07 00:37:53 +0000
committerSean Hunt <scshunt@csclub.uwaterloo.ca>2012-04-07 00:37:53 +0000
commit3420e7f360dab7712a9ec4f51d233c7e73642ec7 (patch)
tree36bcbb118ac482eacb56c76f2bcd6985fb3f8a7b /include/llvm/MC/MCAsmInfo.h
parentd4f020a3af325630973df8d3a084d0b0e3b68ebc (diff)
downloadllvm-3420e7f360dab7712a9ec4f51d233c7e73642ec7.tar.gz
llvm-3420e7f360dab7712a9ec4f51d233c7e73642ec7.tar.bz2
llvm-3420e7f360dab7712a9ec4f51d233c7e73642ec7.tar.xz
Output UTF-8-encoded characters as identifier characters into assembly
by default. This is a behaviour configurable in the MCAsmInfo. I've decided to turn it on by default in (possibly optimistic) hopes that most assemblers are reasonably sane. If this proves a problem, switching to default seems reasonable. I'm not sure if this is the opportune place to test, but it seemed good to make sure it was tested somewhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmInfo.h')
-rw-r--r--include/llvm/MC/MCAsmInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index 095ca14c1b..0f67c99371 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -143,6 +143,10 @@ namespace llvm {
/// symbol names. This defaults to true.
bool AllowPeriodsInName;
+ /// AllowUTF8 - This is true if the assembler accepts UTF-8 input.
+ // FIXME: Make this a more general encoding setting?
+ bool AllowUTF8;
+
//===--- Data Emission Directives -------------------------------------===//
/// ZeroDirective - this should be set to the directive used to get some
@@ -485,6 +489,9 @@ namespace llvm {
bool doesAllowPeriodsInName() const {
return AllowPeriodsInName;
}
+ bool doesAllowUTF8() const {
+ return AllowUTF8;
+ }
const char *getZeroDirective() const {
return ZeroDirective;
}