r179495 - Removed #if 0 code that doesn't compiled if uncommented.

Rafael Espindola rafael.espindola at gmail.com
Sun Apr 14 15:08:07 PDT 2013


Author: rafael
Date: Sun Apr 14 17:08:07 2013
New Revision: 179495

URL: http://llvm.org/viewvc/llvm-project?rev=179495&view=rev
Log:
Removed #if 0 code that doesn't compiled if uncommented.

Modified:
    cfe/trunk/lib/CodeGen/CGAtomic.cpp

Modified: cfe/trunk/lib/CodeGen/CGAtomic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGAtomic.cpp?rev=179495&r1=179494&r2=179495&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGAtomic.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGAtomic.cpp Sun Apr 14 17:08:07 2013
@@ -483,15 +483,6 @@ RValue CodeGenFunction::EmitAtomicExpr(A
       Args.add(RValue::get(EmitCastToVoidPtr(Dest)),
                getContext().VoidPtrTy);
       break;
-#if 0
-    // These are only defined for 1-16 byte integers.  It is not clear what
-    // their semantics would be on anything else...
-    case AtomicExpr::Add:   LibCallName = "__atomic_fetch_add_generic"; break;
-    case AtomicExpr::Sub:   LibCallName = "__atomic_fetch_sub_generic"; break;
-    case AtomicExpr::And:   LibCallName = "__atomic_fetch_and_generic"; break;
-    case AtomicExpr::Or:    LibCallName = "__atomic_fetch_or_generic"; break;
-    case AtomicExpr::Xor:   LibCallName = "__atomic_fetch_xor_generic"; break;
-#endif
     default: return EmitUnsupportedRValue(E, "atomic library call");
     }
     // order is always the last parameter





More information about the cfe-commits mailing list