[cfe-commits] r96280 - /cfe/trunk/lib/Frontend/ASTMerge.cpp
Douglas Gregor
dgregor at apple.com
Mon Feb 15 14:05:17 PST 2010
Author: dgregor
Date: Mon Feb 15 16:05:17 2010
New Revision: 96280
URL: http://llvm.org/viewvc/llvm-project?rev=96280&view=rev
Log:
Tell ASTMerge to merge every declaration it sees, rather than cherry-picking those declarations that we know will work.
Modified:
cfe/trunk/lib/Frontend/ASTMerge.cpp
Modified: cfe/trunk/lib/Frontend/ASTMerge.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTMerge.cpp?rev=96280&r1=96279&r2=96280&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTMerge.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTMerge.cpp Mon Feb 15 16:05:17 2010
@@ -52,21 +52,7 @@
for (DeclContext::decl_iterator D = TU->decls_begin(),
DEnd = TU->decls_end();
D != DEnd; ++D) {
- // FIXME: We only merge variables whose names start with x and functions
- // whose names start with 'f'. Why would anyone want anything else?
- if (VarDecl *VD = dyn_cast<VarDecl>(*D)) {
- if (VD->getIdentifier() &&
- *VD->getIdentifier()->getNameStart() == 'x') {
- Decl *Merged = Importer.Import(VD);
- (void)Merged;
- }
- } else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(*D)) {
- if (FD->getIdentifier() &&
- *FD->getIdentifier()->getNameStart() == 'f') {
- Decl *Merged = Importer.Import(FD);
- (void)Merged;
- }
- }
+ Importer.Import(*D);
}
delete Unit;
More information about the cfe-commits
mailing list