search for: loadsymbolt

Displaying 1 result from an estimated 1 matches for "loadsymbolt".

Did you mean: loadsymbols
2005 Feb 26
1
[LLVMdev] Patch to determine whether an LLVM archive file really is such
...Feb 2005 20:05:12 -0000 @@ -503,3 +503,32 @@ } } } + +bool +Archive::isBytecodeArchive() +{ + //Make sure the symTab has been loaded... + //in most cases this should have been done + //when the archive was constructed, but still, + //this is just in case. + if ( !symTab.size() ) + loadSymbolTable(); + + //Now that we know it's been loaded, return true + //if it has a size + if ( symTab.size() ) return true; + + //We still can't be sure it isn't a bytecode archive + loadArchive(); + + std::vector<Module *> Modules; + std::string ErrorMessage; + + //If getAllModu...