[llvm-commits] CVS: llvm/lib/Debugger/ProgramInfo.cpp

Jeff Cohen jeffc at jolt-lang.org
Sat Apr 7 12:41:22 PDT 2007


This breaks the LLVM build.  I am getting errors like:

llvm[1]: Compiling Archive.cpp for Debug build
/usr/home/jeffc/llvm/lib/Bytecode/Archive/Archive.cpp: In member 
function 'bool llvm::ArchiveMember::replaceWith(const llvm::sys::Path&, 
std::string*)':
/usr/home/jeffc/llvm/lib/Bytecode/Archive/Archive.cpp:119: error: 'class 
llvm::sys::Path' has no member named 'getFileStatus'


Reid Spencer wrote:
> Changes in directory llvm/lib/Debugger:
>
> ProgramInfo.cpp updated: 1.21 -> 1.22
> ---
> Log message:
>
> For PR1291: http://llvm.org/PR1291 :
> Change uses of sys::Path class to sys::PathWithStatus in those places where
> the file status information is needed.
>
>
> ---
> Diffs of the changes:  (+1 -1)
>
>  ProgramInfo.cpp |    2 +-
>  1 files changed, 1 insertion(+), 1 deletion(-)
>
>
> Index: llvm/lib/Debugger/ProgramInfo.cpp
> diff -u llvm/lib/Debugger/ProgramInfo.cpp:1.21 llvm/lib/Debugger/ProgramInfo.cpp:1.22
> --- llvm/lib/Debugger/ProgramInfo.cpp:1.21	Thu Mar 29 14:05:44 2007
> +++ llvm/lib/Debugger/ProgramInfo.cpp	Sat Apr  7 13:53:16 2007
> @@ -195,7 +195,7 @@
>  ProgramInfo::ProgramInfo(Module *m) : M(m), ProgramTimeStamp(0,0) {
>    assert(M && "Cannot create program information with a null module!");
>    const sys::FileStatus *Stat;
> -  Stat = sys::Path(M->getModuleIdentifier()).getFileStatus();
> +  Stat = sys::PathWithStatus(M->getModuleIdentifier()).getFileStatus();
>    if (Stat)
>      ProgramTimeStamp = Stat->getTimestamp();
>  
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
>
>   




More information about the llvm-commits mailing list