[cfe-commits] r160684 - /cfe/trunk/lib/CodeGen/ABIInfo.h

Rafael Espindola rafael.espindola at gmail.com
Tue Jul 24 12:30:24 PDT 2012


Author: rafael
Date: Tue Jul 24 14:30:23 2012
New Revision: 160684

URL: http://llvm.org/viewvc/llvm-project?rev=160684&view=rev
Log:
ABIArgInfo's constructor is private and only used by the static get* methods.
No need to abuse default arguments.

Modified:
    cfe/trunk/lib/CodeGen/ABIInfo.h

Modified: cfe/trunk/lib/CodeGen/ABIInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/ABIInfo.h?rev=160684&r1=160683&r2=160684&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/ABIInfo.h (original)
+++ cfe/trunk/lib/CodeGen/ABIInfo.h Tue Jul 24 14:30:23 2012
@@ -75,8 +75,8 @@
     bool BoolData0;
     bool BoolData1;
 
-    ABIArgInfo(Kind K, llvm::Type *TD=0, unsigned UI=0,
-               bool B0 = false, bool B1 = false, llvm::Type* P = 0)
+    ABIArgInfo(Kind K, llvm::Type *TD, unsigned UI, bool B0, bool B1,
+               llvm::Type* P)
       : TheKind(K), TypeData(TD), PaddingType(P), UIntData(UI), BoolData0(B0),
         BoolData1(B1) {}
 
@@ -88,17 +88,17 @@
       return ABIArgInfo(Direct, T, Offset, false, false, Padding);
     }
     static ABIArgInfo getExtend(llvm::Type *T = 0) {
-      return ABIArgInfo(Extend, T, 0);
+      return ABIArgInfo(Extend, T, 0, false, false, 0);
     }
     static ABIArgInfo getIgnore() {
-      return ABIArgInfo(Ignore);
+      return ABIArgInfo(Ignore, 0, 0, false, false, 0);
     }
     static ABIArgInfo getIndirect(unsigned Alignment, bool ByVal = true
                                   , bool Realign = false) {
-      return ABIArgInfo(Indirect, 0, Alignment, ByVal, Realign);
+      return ABIArgInfo(Indirect, 0, Alignment, ByVal, Realign, 0);
     }
     static ABIArgInfo getExpand() {
-      return ABIArgInfo(Expand);
+      return ABIArgInfo(Expand, 0, 0, false, false, 0);
     }
 
     Kind getKind() const { return TheKind; }





More information about the cfe-commits mailing list