diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-26 04:52:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-26 04:52:29 +0000 |
commit | 882034dd99639a85649e2a7d5a5f602e5afab317 (patch) | |
tree | 93e474162bf1e97e57c6110973279dc9360a1669 /clang/lib | |
parent | db0a48b1a741d37bc5db85d8bb57fe9d05d1a458 (diff) | |
download | bcm5719-llvm-882034dd99639a85649e2a7d5a5f602e5afab317.tar.gz bcm5719-llvm-882034dd99639a85649e2a7d5a5f602e5afab317.zip |
indenting and other minor things.
llvm-svn: 52764
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGObjCGNU.cpp | 8 | ||||
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp index 83b093a4794..c48c21d62b6 100644 --- a/clang/lib/CodeGen/CGObjCGNU.cpp +++ b/clang/lib/CodeGen/CGObjCGNU.cpp @@ -390,8 +390,8 @@ llvm::Constant *CGObjCGNU::GenerateMethodList(const std::string &ClassName, std::vector<llvm::Constant*> Elements; for (unsigned int i = 0, e = MethodTypes.size(); i < e; ++i) { Elements.clear(); - Elements.push_back( llvm::ConstantExpr::getGetElementPtr(MethodNames[i], - Zeros, 2)); + Elements.push_back(llvm::ConstantExpr::getGetElementPtr(MethodNames[i], + Zeros, 2)); Elements.push_back( llvm::ConstantExpr::getGetElementPtr(MethodTypes[i], Zeros, 2)); llvm::Constant *Method = @@ -406,9 +406,9 @@ llvm::Constant *CGObjCGNU::GenerateMethodList(const std::string &ClassName, // Array of method structures llvm::ArrayType *ObjCMethodArrayTy = llvm::ArrayType::get(ObjCMethodTy, - MethodNames.size()); + MethodNames.size()); llvm::Constant *MethodArray = llvm::ConstantArray::get(ObjCMethodArrayTy, - Methods); + Methods); // Structure containing list pointer, array and array count llvm::SmallVector<const llvm::Type*, 16> ObjCMethodListFields; diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index e235b60f7d4..6082226b89d 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -395,7 +395,7 @@ void CodeGenModule::EmitObjCCategoryImpl(const ObjCCategoryImplDecl *OCD) { for (ObjCCategoryDecl::instmeth_iterator iter = OCD->instmeth_begin(), endIter = OCD->instmeth_end() ; iter != endIter ; iter++) { std::string TypeStr; - Context.getObjCEncodingForMethodDecl((*iter),TypeStr); + Context.getObjCEncodingForMethodDecl(*iter,TypeStr); InstanceMethodNames.push_back( GetAddrOfConstantString((*iter)->getSelector().getName())); InstanceMethodTypes.push_back(GetAddrOfConstantString(TypeStr)); @@ -407,7 +407,7 @@ void CodeGenModule::EmitObjCCategoryImpl(const ObjCCategoryImplDecl *OCD) { for (ObjCCategoryDecl::classmeth_iterator iter = OCD->classmeth_begin(), endIter = OCD->classmeth_end() ; iter != endIter ; iter++) { std::string TypeStr; - Context.getObjCEncodingForMethodDecl((*iter),TypeStr); + Context.getObjCEncodingForMethodDecl(*iter,TypeStr); ClassMethodNames.push_back( GetAddrOfConstantString((*iter)->getSelector().getName())); ClassMethodTypes.push_back(GetAddrOfConstantString(TypeStr)); |