diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-03 20:11:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-03 20:11:42 +0000 |
commit | 6d5a1c28593443f3973ef38f8fa042d59182412d (patch) | |
tree | 46e6fccc3752d6a3b82faa450161cdc54adff20e /lib/CodeGen/CGObjC.cpp | |
parent | 22c92406f4b043bd872b53761f6a157fcc105594 (diff) |
Revert "Numerous changes to selector handling:", this breaks a whole bunch of
working code, for no apparent reason.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index e4421670ff..896d2207ea 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -38,11 +38,7 @@ llvm::Value *CodeGenFunction::EmitObjCSelectorExpr(const ObjCSelectorExpr *E) { // Note that this implementation allows for non-constant strings to be passed // as arguments to @selector(). Currently, the only thing preventing this // behaviour is the type checking in the front end. - ObjCMethodDecl *OMD = E->getMethodDecl(); - if (OMD) - return CGM.getObjCRuntime().GetSelector(Builder, OMD); - else - return CGM.getObjCRuntime().GetSelector(Builder, E->getSelector()); + return CGM.getObjCRuntime().GetSelector(Builder, E->getSelector()); } llvm::Value *CodeGenFunction::EmitObjCProtocolExpr(const ObjCProtocolExpr *E) { |