LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ProgramInfo.cpp File Reference

#include "llvm/Debugger/ProgramInfo.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Intrinsics.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Debugger/SourceFile.h"
#include "llvm/Debugger/SourceLanguage.h"
#include "llvm/Support/FileUtilities.h"
#include "llvm/Support/SlowOperationInformer.h"
#include "llvm/ADT/STLExtras.h"
#include <iostream>

Include dependency graph for ProgramInfo.cpp:

Go to the source code of this file.

Functions

static void getGlobalVariablesUsing (Value *V, std::vector< GlobalVariable * > &Found)
static std::string getStringValue (Value *V, unsigned Offset=0)
static const GlobalVariablegetNextStopPoint (const Value *V, unsigned &LineNo, unsigned &ColNo)


Function Documentation

static void getGlobalVariablesUsing Value V,
std::vector< GlobalVariable * > &  Found
[static]
 

getGlobalVariablesUsing - Return all of the global variables which have the specified value in their initializer somewhere.

Definition at line 32 of file ProgramInfo.cpp.

References C, E, I, llvm::Value::use_begin(), and llvm::Value::use_end().

Referenced by llvm::ProgramInfo::getSourceFiles(), and llvm::ProgramInfo::getSourceFunctions().

static const GlobalVariable* getNextStopPoint const Value V,
unsigned &  LineNo,
unsigned &  ColNo
[static]
 

getNextStopPoint - Follow the def-use chains of the specified LLVM value, traversing the use chains until we get to a stoppoint. When we do, return the source location of the stoppoint. If we don't find a stoppoint, return null.

Definition at line 85 of file ProgramInfo.cpp.

References C, llvm::Intrinsic::dbg_stoppoint, E, F, llvm::ISD::PHI, U, llvm::Value::use_begin(), and llvm::Value::use_end().

Referenced by llvm::SourceFunctionInfo::getSourceLocation().

static std::string getStringValue Value V,
unsigned  Offset = 0
[static]
 

getStringValue - Turn an LLVM constant pointer that eventually points to a global into a string value. Return an empty string if we can't do it.

Definition at line 45 of file ProgramInfo.cpp.

References C, llvm::ConstantArray::getAsString(), and llvm::ConstantArray::isString().

Referenced by llvm::SourceFileInfo::SourceFileInfo(), and llvm::SourceFunctionInfo::SourceFunctionInfo().