]> granicus.if.org Git - clang/commitdiff
CodeGen: use # as the comment leader for ARC marker
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 11 Feb 2017 23:03:13 +0000 (23:03 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 11 Feb 2017 23:03:13 +0000 (23:03 +0000)
Use # as the comment leader for AArch64 auto-release elision marker.
This is to keep it in sync with the value used in swift.  When building
libdispatch for Linux AArch64, the auto-release elision marker was
emitted.  However, ELF uses # as the comment leader while MachO accepts
both ; and #.  Use the common marker for it instead.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294877 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index 19b63ce6213dc8d7af7334fd22af8c91772426c5..82f412f012d28836f9dbb9945709b2a16b9f6984 100644 (file)
@@ -4835,7 +4835,7 @@ public:
       : TargetCodeGenInfo(new AArch64ABIInfo(CGT, Kind)) {}
 
   StringRef getARCRetainAutoreleasedReturnValueMarker() const override {
-    return "mov\tfp, fp\t\t; marker for objc_retainAutoreleaseReturnValue";
+    return "mov\tfp, fp\t\t# marker for objc_retainAutoreleaseReturnValue";
   }
 
   int getDwarfEHStackPointer(CodeGen::CodeGenModule &M) const override {