//
// The LLVM Compiler Infrastructure
//
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
#include "llvm/Debugger/SourceLanguage.h"
#include "llvm/Support/SlowOperationInformer.h"
#include "llvm/ADT/STLExtras.h"
-#include <iostream>
-
using namespace llvm;
/// getGlobalVariablesUsing - Return all of the global variables which have the
if (SD) { // We found the first stop point!
// This is just a sanity check.
if (getSourceFile().getDescriptor() != SD)
- std::cout << "WARNING: first line of function is not in the"
- " file that the function descriptor claims it is in.\n";
+ cout << "WARNING: first line of function is not in the"
+ << " file that the function descriptor claims it is in.\n";
break;
}
}
ProgramInfo::ProgramInfo(Module *m) : M(m), ProgramTimeStamp(0,0) {
assert(M && "Cannot create program information with a null module!");
- sys::FileStatus Stat;
- if (!sys::Path(M->getModuleIdentifier()).getFileStatus(Stat))
- ProgramTimeStamp = Stat.getTimestamp();
+ sys::PathWithStatus ModPath(M->getModuleIdentifier());
+ const sys::FileStatus *Stat = ModPath.getFileStatus();
+ if (Stat)
+ ProgramTimeStamp = Stat->getTimestamp();
SourceFilesIsComplete = false;
SourceFunctionsIsComplete = false;