diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-25 20:45:57 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-25 20:45:57 +0000 |
commit | 6ba82a4a4b295e54cf192c3e98b28f39990c6194 (patch) | |
tree | 3816dc9f23f26534f26b4acf7ed7e69e04613997 /lib/CodeGen/CodeGenFunction.h | |
parent | d52e4252264f9d1f62da0b5b89d099cd7dd7fa2f (diff) |
Support __PRETTY_FUNCTION__ and friends in Obj-C methods.
Add CodeGenFunction::EmitUnsupportedLValue
- Gives error and returns undef value.
Swap some asserts() over to using EmitUnsupportedLValue
- Rumor has it users (and even some developers) prefer carat
diagnostics to backtraces.
- Works better in Release-Asserts to boot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 0d82e32861..2ba6b8ddcc 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -223,6 +223,12 @@ public: // LValue Expression Emission //===--------------------------------------------------------------------===// + /// EmitUnsupportedLValue - Emit a dummy l-value using the type of E + /// and issue an ErrorUnsupported style diagnostic (using the + /// provided Name). + LValue EmitUnsupportedLValue(const Expr *E, + const char *Name); + /// EmitLValue - Emit code to compute a designator that specifies the location /// of the expression. /// |