Skip to content

Commit

Permalink
Correct setting of UserLabelPrefix for MCU target.
Browse files Browse the repository at this point in the history
Differential Revision: http://reviews.llvm.org/D16138

llvm-svn: 257756
  • Loading branch information
andreybokhanko committed Jan 14, 2016
1 parent 3fa2395 commit 4f8867f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/lib/Basic/Targets.cpp
Expand Up @@ -3899,6 +3899,7 @@ class MCUX86_32TargetInfo : public X86_32TargetInfo {
MCUX86_32TargetInfo(const llvm::Triple &Triple) : X86_32TargetInfo(Triple) {
LongDoubleWidth = 64;
LongDoubleFormat = &llvm::APFloat::IEEEdouble;
UserLabelPrefix = "";
}

CallingConvCheckResult checkCallingConvention(CallingConv CC) const override {
Expand Down
1 change: 1 addition & 0 deletions clang/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__

0 comments on commit 4f8867f

Please sign in to comment.