X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FDebugger%2FSourceLanguage-Unknown.cpp;h=b806fc779ef7e9065e4cce711e7aa4e6db8fd94a;hb=0a0e68a7eac0513505aff3079e2d5d6864e51895;hp=7d262d1131ea89fc4e14c21961735c9a46188fd4;hpb=2eacf26aa61038c5171f7b0257bfc1d2fbf87f8d;p=oota-llvm.git diff --git a/lib/Debugger/SourceLanguage-Unknown.cpp b/lib/Debugger/SourceLanguage-Unknown.cpp index 7d262d1131e..b806fc779ef 100644 --- a/lib/Debugger/SourceLanguage-Unknown.cpp +++ b/lib/Debugger/SourceLanguage-Unknown.cpp @@ -1,12 +1,12 @@ //===-- SourceLanguage-Unknown.cpp - Implement itf for unknown languages --===// -// +// // 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. +// //===----------------------------------------------------------------------===// -// +// // If the LLVM debugger does not have a module for a particular language, it // falls back on using this one to perform the source-language interface. This // interface is not wonderful, but it gets the job done. @@ -15,7 +15,9 @@ #include "llvm/Debugger/SourceLanguage.h" #include "llvm/Debugger/ProgramInfo.h" -#include +#include "llvm/Support/Streams.h" +#include +#include using namespace llvm; //===----------------------------------------------------------------------===// @@ -57,7 +59,7 @@ SLUCache::SLUCache(ProgramInfo &pi) : PI(pi) { // namespace { - struct SLU : public SourceLanguage { + static struct SLU : public SourceLanguage { //===------------------------------------------------------------------===// // Implement the miscellaneous methods... // @@ -130,7 +132,7 @@ SourceFunctionInfo *SLU::lookupFunction(const std::string &FunctionName, SourceFunctionInfo *Found = IP.first->second; ++IP.first; if (IP.first != IP.second) - std::cout << "Whoa, found multiple functions with the same name. I should" - << " ask the user which one to use: FIXME!\n"; + cout << "Whoa, found multiple functions with the same name. I should" + << " ask the user which one to use: FIXME!\n"; return Found; }