]> granicus.if.org Git - clang/commitdiff
Minor formatting/FIXME cleanups.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 30 Mar 2010 22:26:07 +0000 (22:26 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 30 Mar 2010 22:26:07 +0000 (22:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99944 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenTypes.cpp
lib/CodeGen/CodeGenTypes.h

index dc9ecd64f4e461e356f63baf38cb5bc23de4851f..2ddc08a4c449ffc7c7820c8b7c933420214b69c5 100644 (file)
@@ -1872,7 +1872,6 @@ LValue CodeGenFunction::EmitObjCSuperExprLValue(const ObjCSuperExpr *E) {
 LValue CodeGenFunction::EmitStmtExprLValue(const StmtExpr *E) {
   // Can only get l-value for message expression returning aggregate type
   RValue RV = EmitAnyExprToTemp(E);
-  // FIXME: can this be volatile?
   return LValue::MakeAddr(RV.getAggregateAddr(), MakeQualifiers(E->getType()));
 }
 
index 4feca4dd7d3d489f3482e42b58fe44991200feef..4f37537769f9d84de495fb4e4a582fbac3081807 100644 (file)
@@ -477,7 +477,7 @@ void CodeGenTypes::addFieldInfo(const FieldDecl *FD, unsigned No) {
   FieldInfo[FD] = No;
 }
 
-/// getBitFieldInfo - Return the BitFieldInfo  that corresponds to the field FD.
+/// getBitFieldInfo - Return the BitFieldInfo that corresponds to the field FD.
 CodeGenTypes::BitFieldInfo CodeGenTypes::getBitFieldInfo(const FieldDecl *FD) {
   llvm::DenseMap<const FieldDecl *, BitFieldInfo>::iterator
     I = BitFields.find(FD);
index 173c4ad37814dff516cf2794723558205999166c..9a620e4c0122ccf1ee9e4b2cb956492652e85613 100644 (file)
@@ -69,7 +69,7 @@ namespace CodeGen {
 
   public:
     CGRecordLayout(const llvm::Type *T, bool ContainsPointerToDataMember)
-      : LLVMType(T), ContainsPointerToDataMember(ContainsPointerToDataMember) { }
+      : LLVMType(T), ContainsPointerToDataMember(ContainsPointerToDataMember) {}
 
     /// getLLVMType - Return llvm type associated with this record.
     const llvm::Type *getLLVMType() const {
@@ -107,8 +107,6 @@ class CodeGenTypes {
 
   /// CGRecordLayouts - This maps llvm struct type with corresponding
   /// record layout info.
-  /// FIXME : If CGRecordLayout is less than 16 bytes then use
-  /// inline it in the map.
   llvm::DenseMap<const Type*, CGRecordLayout *> CGRecordLayouts;
 
   /// FieldInfo - This maps struct field with corresponding llvm struct type