commit | 371f258e61e1365b951b17931a3c5ac1530fd1a0 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Dec 04 23:50:19 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Dec 04 23:50:19 2008 +0000 |
tree | 41095e9a128c4e4f966f33753e4317749853ef74 | |
parent | ae0ee03fd9d36446ee70e502fdaf5ed5acec269f [diff] |
change getCurFunctionDecl to skip through Block contexts to find the containing block. Introduce a new getCurFunctionOrMethodDecl method to check to see if we're in a function or objc method. Minor cleanups to other related places. This fixes rdar://6405429. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60564 91177308-0d34-0410-b5e6-96231b3b80d8