LLVM API Documentation

ProgramInfo.cpp File Reference

#include "llvm/Debugger/ProgramInfo.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Intrinsics.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Debugger/SourceFile.h"
#include "llvm/Debugger/SourceLanguage.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 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, getGlobalVariablesUsing(), GV, and V.

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 46 of file ProgramInfo.cpp.

References E, F, GV, Op, PHI, U, and V.

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