[cfe-commits] r60558 - /cfe/trunk/Driver/CacheTokens.cpp
Ted Kremenek
kremenek at apple.com
Thu Dec 4 14:36:44 PST 2008
Author: kremenek
Date: Thu Dec 4 16:36:44 2008
New Revision: 60558
URL: http://llvm.org/viewvc/llvm-project?rev=60558&view=rev
Log:
Remove unneeded assertion. We already know that FE->getName() is an absolute path.
Modified:
cfe/trunk/Driver/CacheTokens.cpp
Modified: cfe/trunk/Driver/CacheTokens.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/CacheTokens.cpp?rev=60558&r1=60557&r2=60558&view=diff
==============================================================================
--- cfe/trunk/Driver/CacheTokens.cpp (original)
+++ cfe/trunk/Driver/CacheTokens.cpp Thu Dec 4 16:36:44 2008
@@ -136,11 +136,10 @@
for (PCHMap::iterator I=PM.begin(), E=PM.end(); I!=E; ++I) {
const FileEntry* FE = I->first;
- llvm::sys::Path P(FE->getName());
- assert(P.isAbsolute());
- Emit32(Out, P.size());
- const char* buf = P.c_str();
- EmitBuf(Out, buf, buf+P.size());
+ const char* Name = FE->getName();
+ unsigned size = strlen(Name);
+ Emit32(Out, size);
+ EmitBuf(Out, Name, Name+size);
Emit32(Out, I->second);
}
More information about the cfe-commits
mailing list