[llvm-commits] [llvm] r108932 - in /llvm/trunk: include/llvm/PassRegistry.h lib/VMCore/Pass.cpp lib/VMCore/PassRegistry.cpp
Chris Lattner
clattner at apple.com
Tue Sep 7 12:50:23 PDT 2010
On Sep 7, 2010, at 12:49 PM, Owen Anderson wrote:
>
> On Sep 5, 2010, at 3:43 PM, Chris Lattner wrote:
>>> +namespace {
>>
>> Please only use namespaces for classes. For globals and functions, just use 'static' like the coding standards say:
>> http://llvm.org/docs/CodingStandards.html#micro_anonns
>
> 'static' is not legal in this instance, since we need to pass the address of cleanupPassRegistry() to the ManagedCleanup object.
What does that have to do with it?
-Chris
More information about the llvm-commits
mailing list