Skip to content
This repository was archived by the owner on Jun 1, 2020. It is now read-only.

Commit fbe1159

Browse files
committed
Update code to build vs. LLVM 5.0 release
1 parent 58d6d29 commit fbe1159

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

build_vs_released_binary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
set -eu
1616
set -x
1717

18-
BINARY_DIR_PATH=${BINARY_DIR_PATH:-$HOME/llvm/llvm3.8-binaries}
18+
BINARY_DIR_PATH=${BINARY_DIR_PATH:-$HOME/llvm/llvm5.0-binaries}
1919

2020
make -j8 \
2121
CXX=$BINARY_DIR_PATH/bin/clang++ \

src_llvm/access_debug_metadata.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ int main(int argc, char **argv) {
3333
E = Mod->named_metadata_end();
3434
I != E; ++I) {
3535
outs() << "Found MDNode:\n";
36-
I->dump();
36+
// These dumps only work with LLVM built with a special cmake flag enabling
37+
// dumps.
38+
// I->dump();
3739

3840
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) {
3941
Metadata *Op = I->getOperand(i);
4042
if (auto *N = dyn_cast<MDNode>(Op)) {
4143
outs() << " Has MDNode operand:\n ";
42-
N->dump();
44+
// N->dump();
4345
outs() << " " << N->getNumOperands() << " operands\n";
4446
}
4547
}

src_llvm/analyze_geps.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class AnalyzeGEPPass : public BasicBlockPass {
3737
for (auto II = BB.begin(), II_e = BB.end(); II != II_e; ++II) {
3838
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(II)) {
3939
outs() << "Found GEP:\n";
40-
GEP->dump();
40+
// These dumps only work with LLVM built with a special cmake flag
41+
// enabling dumps.
42+
// GEP->dump();
4143
outs() << " The type is: " << ToString(GEP->getType()) << "\n";
4244
outs() << " The pointer operand is: "
4345
<< ToString(GEP->getPointerOperand()) << "\n";

src_llvm/replace_threadidx_with_call.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ int main(int argc, char **argv) {
135135
PM.run(*Mod);
136136

137137
outs() << "Dumping the module after the pass has run:\n";
138-
Mod->dump();
138+
// These dumps only work with LLVM built with a special cmake flag enabling
139+
// dumps.
140+
// Mod->dump();
139141

140142
return 0;
141143
}

0 commit comments

Comments
 (0)