[cfe-commits] r117106 - in /cfe/trunk/lib: CodeGen/CGExprCXX.cpp CodeGen/CGExprScalar.cpp CodeGen/CGRTTI.cpp Rewrite/FrontendActions.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Oct 22 09:48:22 PDT 2010
Author: d0k
Date: Fri Oct 22 11:48:22 2010
New Revision: 117106
URL: http://llvm.org/viewvc/llvm-project?rev=117106&view=rev
Log:
More class anonymization.
Modified:
cfe/trunk/lib/CodeGen/CGExprCXX.cpp
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
cfe/trunk/lib/CodeGen/CGRTTI.cpp
cfe/trunk/lib/Rewrite/FrontendActions.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprCXX.cpp?rev=117106&r1=117105&r2=117106&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprCXX.cpp Fri Oct 22 11:48:22 2010
@@ -688,6 +688,7 @@
StoreAnyExprIntoOneUnit(CGF, E, NewPtr);
}
+namespace {
/// A utility class for saving an rvalue.
class SavedRValue {
public:
@@ -727,6 +728,7 @@
Kind getKind() const { return K; }
llvm::Value *getValue() const { return Value; }
};
+} // end anonymous namespace
/// Given an r-value, perform the code necessary to make sure that a
/// future RestoreRValue will be able to load the value without
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=117106&r1=117105&r2=117106&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Fri Oct 22 11:48:22 2010
@@ -39,6 +39,7 @@
// Scalar Expression Emitter
//===----------------------------------------------------------------------===//
+namespace {
struct BinOpInfo {
Value *LHS;
Value *RHS;
@@ -47,7 +48,6 @@
const Expr *E; // Entire expr, for error unsupported. May not be binop.
};
-namespace {
class ScalarExprEmitter
: public StmtVisitor<ScalarExprEmitter, Value*> {
CodeGenFunction &CGF;
Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=117106&r1=117105&r2=117106&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRTTI.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRTTI.cpp Fri Oct 22 11:48:22 2010
@@ -695,12 +695,14 @@
Fields.push_back(BaseTypeInfo);
}
-/// SeenBases - Contains virtual and non-virtual bases seen when traversing
-/// a class hierarchy.
-struct SeenBases {
- llvm::SmallPtrSet<const CXXRecordDecl *, 16> NonVirtualBases;
- llvm::SmallPtrSet<const CXXRecordDecl *, 16> VirtualBases;
-};
+namespace {
+ /// SeenBases - Contains virtual and non-virtual bases seen when traversing
+ /// a class hierarchy.
+ struct SeenBases {
+ llvm::SmallPtrSet<const CXXRecordDecl *, 16> NonVirtualBases;
+ llvm::SmallPtrSet<const CXXRecordDecl *, 16> VirtualBases;
+ };
+}
/// ComputeVMIClassTypeInfoFlags - Compute the value of the flags member in
/// abi::__vmi_class_type_info.
Modified: cfe/trunk/lib/Rewrite/FrontendActions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/FrontendActions.cpp?rev=117106&r1=117105&r2=117106&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/FrontendActions.cpp (original)
+++ cfe/trunk/lib/Rewrite/FrontendActions.cpp Fri Oct 22 11:48:22 2010
@@ -42,6 +42,7 @@
return new ASTConsumer();
}
+namespace {
class FixItRewriteInPlace : public FixItOptions {
public:
std::string RewriteFilename(const std::string &Filename) { return Filename; }
@@ -64,6 +65,7 @@
return Path.c_str();
}
};
+} // end anonymous namespace
bool FixItAction::BeginSourceFileAction(CompilerInstance &CI,
llvm::StringRef Filename) {
More information about the cfe-commits
mailing list