X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FDebugger%2FSourceLanguage-Unknown.cpp;h=b806fc779ef7e9065e4cce711e7aa4e6db8fd94a;hb=236aa8a5032282d8793b537c0f3f7ffb381a83d4;hp=806eb71dd0d179ba9feb90e5b90aed15fb7ab879;hpb=60a57584f6e37c161828e9e223a7b9fa8b5947ee;p=oota-llvm.git diff --git a/lib/Debugger/SourceLanguage-Unknown.cpp b/lib/Debugger/SourceLanguage-Unknown.cpp index 806eb71dd0d..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,8 +15,9 @@ #include "llvm/Debugger/SourceLanguage.h" #include "llvm/Debugger/ProgramInfo.h" -#include +#include "llvm/Support/Streams.h" #include +#include using namespace llvm; //===----------------------------------------------------------------------===// @@ -58,7 +59,7 @@ SLUCache::SLUCache(ProgramInfo &pi) : PI(pi) { // namespace { - struct SLU : public SourceLanguage { + static struct SLU : public SourceLanguage { //===------------------------------------------------------------------===// // Implement the miscellaneous methods... // @@ -131,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; }