LLVM  4.0.0
Functions
IRMover.cpp File Reference
#include "llvm/Linker/IRMover.h"
#include "LinkDiagnosticInfo.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Triple.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/DiagnosticPrinter.h"
#include "llvm/IR/GVMaterializer.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/TypeFinder.h"
#include "llvm/Support/Error.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include <utility>
Include dependency graph for IRMover.cpp:

Go to the source code of this file.

Functions

static void forceRenaming (GlobalValue *GV, StringRef Name)
 The LLVM SymbolTable class autorenames globals that conflict in the symbol table. More...
 
static void getArrayElements (const Constant *C, SmallVectorImpl< Constant * > &Dest)
 
static bool triplesMatch (const Triple &T0, const Triple &T1)
 
static std::string mergeTriples (const Triple &SrcTriple, const Triple &DstTriple)
 

Function Documentation

static void forceRenaming ( GlobalValue GV,
StringRef  Name 
)
static

The LLVM SymbolTable class autorenames globals that conflict in the symbol table.

This is good for all clients except for us. Go through the trouble to force this back.

Definition at line 518 of file IRMover.cpp.

References assert(), llvm::Value::getName(), llvm::Module::getNamedValue(), llvm::GlobalValue::getParent(), llvm::GlobalValue::hasLocalLinkage(), llvm::Value::setName(), and llvm::Value::takeName().

static void getArrayElements ( const Constant C,
SmallVectorImpl< Constant * > &  Dest 
)
static
static std::string mergeTriples ( const Triple SrcTriple,
const Triple DstTriple 
)
static
static bool triplesMatch ( const Triple T0,
const Triple T1 
)
static