LLVM API Documentation
#include "llvm/Constants.h"#include "llvm/DerivedTypes.h"#include "llvm/GlobalVariable.h"#include "llvm/Function.h"#include "llvm/Module.h"#include "llvm/Type.h"#include "llvm/Target/TargetAsmInfo.h"#include "llvm/Target/TargetOptions.h"#include "llvm/Support/Dwarf.h"#include <cctype>#include <cstring>
Go to the source code of this file.
Functions | |
| static bool | isSuitableForBSS (const GlobalVariable *GV) |
| static bool | isConstantString (const Constant *C) |
| static bool isConstantString | ( | const Constant * | C | ) | [static] |
Definition at line 174 of file TargetAsmInfo.cpp.
References llvm::dyn_cast(), llvm::Value::getType(), llvm::Type::Int8Ty, llvm::ConstantArray::isCString(), and Ty.
Referenced by llvm::TargetAsmInfo::SectionKindForGlobal().
| static bool isSuitableForBSS | ( | const GlobalVariable * | GV | ) | [static] |
Definition at line 165 of file TargetAsmInfo.cpp.
References llvm::CallingConv::C, llvm::GlobalVariable::getInitializer(), llvm::GlobalVariable::hasInitializer(), llvm::GlobalVariable::isConstant(), llvm::Constant::isNullValue(), and llvm::NoZerosInBSS.
Referenced by llvm::TargetAsmInfo::SectionKindForGlobal().