From abc1b34740959e420fc2442174aedde5e3f8702c Mon Sep 17 00:00:00 2001 From: Andrey Bokhanko Date: Thu, 14 Jan 2016 10:59:36 +0000 Subject: [PATCH] Correct setting of UserLabelPrefix for MCU target. Differential Revision: http://reviews.llvm.org/D16138 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257756 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 1 + test/Preprocessor/elfiamcu-predefines.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 1bc6c51b9b..4bb77a01ec 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3899,6 +3899,7 @@ public: MCUX86_32TargetInfo(const llvm::Triple &Triple) : X86_32TargetInfo(Triple) { LongDoubleWidth = 64; LongDoubleFormat = &llvm::APFloat::IEEEdouble; + UserLabelPrefix = ""; } CallingConvCheckResult checkCallingConvention(CallingConv CC) const override { diff --git a/test/Preprocessor/elfiamcu-predefines.c b/test/Preprocessor/elfiamcu-predefines.c index af5e40e3c8..7140c612ba 100644 --- a/test/Preprocessor/elfiamcu-predefines.c +++ b/test/Preprocessor/elfiamcu-predefines.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -E -dM -triple i586-intel-elfiamcu | FileCheck %s +// CHECK: #define __USER_LABEL_PREFIX__ {{$}} // CHECK: #define __iamcu // CHECK: #define __iamcu__ -- 2.40.0