Skip to content

Commit a5ee639

Browse files
committed
Fix formatting of inline argument comments. NFC.
Also, remove the final arg from ItaniumCXXABI in the PNaCl case since its not needed. Differential Revision: https://reviews.llvm.org/D64955 llvm-svn: 366518
1 parent 3e4a13a commit a5ee639

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

clang/lib/CodeGen/ItaniumCXXABI.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ class ItaniumCXXABI : public CodeGen::CGCXXABI {
415415
class ARMCXXABI : public ItaniumCXXABI {
416416
public:
417417
ARMCXXABI(CodeGen::CodeGenModule &CGM) :
418-
ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true,
419-
/* UseARMGuardVarABI = */ true) {}
418+
ItaniumCXXABI(CGM, /*UseARMMethodPtrABI=*/true,
419+
/*UseARMGuardVarABI=*/true) {}
420420

421421
bool HasThisReturn(GlobalDecl GD) const override {
422422
return (isa<CXXConstructorDecl>(GD.getDecl()) || (
@@ -480,11 +480,11 @@ CodeGen::CGCXXABI *CodeGen::CreateItaniumCXXABI(CodeGenModule &CGM) {
480480
// include the other 32-bit ARM oddities: constructor/destructor return values
481481
// and array cookies.
482482
case TargetCXXABI::GenericAArch64:
483-
return new ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true,
484-
/* UseARMGuardVarABI = */ true);
483+
return new ItaniumCXXABI(CGM, /*UseARMMethodPtrABI=*/true,
484+
/*UseARMGuardVarABI=*/true);
485485

486486
case TargetCXXABI::GenericMIPS:
487-
return new ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true);
487+
return new ItaniumCXXABI(CGM, /*UseARMMethodPtrABI=*/true);
488488

489489
case TargetCXXABI::WebAssembly:
490490
return new WebAssemblyCXXABI(CGM);
@@ -495,8 +495,7 @@ CodeGen::CGCXXABI *CodeGen::CreateItaniumCXXABI(CodeGenModule &CGM) {
495495
// For PNaCl, use ARM-style method pointers so that PNaCl code
496496
// does not assume anything about the alignment of function
497497
// pointers.
498-
return new ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true,
499-
/* UseARMGuardVarABI = */ false);
498+
return new ItaniumCXXABI(CGM, /*UseARMMethodPtrABI=*/true);
500499
}
501500
return new ItaniumCXXABI(CGM);
502501

0 commit comments

Comments
 (0)