]> granicus.if.org Git - clang/commitdiff
The dtor CGObjCRuntime::~CGObjCRuntime() was implemented twice, once
authorTed Kremenek <kremenek@apple.com>
Wed, 9 Apr 2008 15:51:31 +0000 (15:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 9 Apr 2008 15:51:31 +0000 (15:51 +0000)
in CGObjCGNU.cpp and once in CGObjCEtoile.cpp.  Moved its definition to
CGObjC.cpp.  This resolves a build error in Xcode, and also cleans things up.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49429 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCEtoile.cpp
lib/CodeGen/CGObjCGNU.cpp

index 7894e83c05881317f0443777fb0dae13442b2749..299698f1f38bf7ea5a134f2c072b5b2f55c9cc26 100644 (file)
@@ -11,6 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "CGObjCRuntime.h"
 #include "CodeGenFunction.h"
 #include "CodeGenModule.h"
 #include "clang/AST/Expr.h"
@@ -23,4 +24,4 @@ llvm::Value *CodeGenFunction::EmitObjCStringLiteral(const ObjCStringLiteral *E){
   return CGM.GetAddrOfConstantCFString(S);
 }
 
-
+CGObjCRuntime::~CGObjCRuntime() {}
index 74c98224ffe420dd7c4a7d39bb069f4ce6d15035..efd5fac3293c2cdf5d2faaf140a62d805e9ee564 100644 (file)
@@ -17,9 +17,6 @@
 #include "llvm/Support/LLVMBuilder.h"
 #include "llvm/ADT/SmallVector.h"
 
-
-clang::CodeGen::CGObjCRuntime::~CGObjCRuntime() {}
-
 namespace {
 class CGObjCEtoile : public clang::CodeGen::CGObjCRuntime {
 private:
index 9d97d475caa879bc858ef5129f47236e1fffb502..7fc3eca6cebf6ccdc5679b91087a8343054b6c50 100644 (file)
@@ -17,9 +17,6 @@
 #include "llvm/Support/LLVMBuilder.h"
 #include "llvm/ADT/SmallVector.h"
 
-
-clang::CodeGen::CGObjCRuntime::~CGObjCRuntime() {}
-
 namespace {
 class CGObjCGNU : public clang::CodeGen::CGObjCRuntime {
 private: