summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-23 23:06:28 +0000
committerChris Lattner <sabre@nondot.org>2006-01-23 23:06:28 +0000
commit37992b34c23f134c4118bc365022502816937970 (patch)
treed012ba72e1a5b569b47f158b7a95479a3077a32b /llvm/lib/Transforms/Utils/CloneModule.cpp
parentedd9b0389bedc8f813205fbce13d5d18b03280c0 (diff)
downloadbcm5719-llvm-37992b34c23f134c4118bc365022502816937970.tar.gz
bcm5719-llvm-37992b34c23f134c4118bc365022502816937970.zip
When cloning a module, clone the inline asm.
llvm-svn: 25559
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneModule.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneModule.cpp b/llvm/lib/Transforms/Utils/CloneModule.cpp
index 324e00aaa8c..1cab1587856 100644
--- a/llvm/lib/Transforms/Utils/CloneModule.cpp
+++ b/llvm/lib/Transforms/Utils/CloneModule.cpp
@@ -31,6 +31,7 @@ Module *llvm::CloneModule(const Module *M) {
New->setEndianness(M->getEndianness());
New->setPointerSize(M->getPointerSize());
New->setTargetTriple(M->getTargetTriple());
+ New->setInlineAsm(M->getInlineAsm());
// Copy all of the type symbol table entries over.
const SymbolTable &SymTab = M->getSymbolTable();
OpenPOWER on IntegriCloud