From f7d2c2c56c986e53045fbb6a54669463cda752c4 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 10 Oct 2016 23:02:42 +0000 Subject: [PATCH] Fix llvm-lit.in corresponding to r283710. Traceback (most recent call last): File "bin/llvm-lit", line 44, in lit.main(builtin_parameters) AttributeError: 'module' object has no attribute 'main' Suggested by Artem Belevich. llvm-svn: 283816 --- utils/llvm-lit/llvm-lit.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/llvm-lit/llvm-lit.in b/utils/llvm-lit/llvm-lit.in index fc962021d73..57924fab8d3 100755 --- a/utils/llvm-lit/llvm-lit.in +++ b/utils/llvm-lit/llvm-lit.in @@ -40,5 +40,5 @@ if os.path.exists(compilerrt_obj_root): os.path.join(compilerrt_obj_root, 'test') if __name__=='__main__': - import lit - lit.main(builtin_parameters) + from lit.main import main + main(builtin_parameters)